2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 09:14:04 +00:00
bench/vm/vm-production.json

93 lines
3.3 KiB
JSON
Raw Normal View History

2015-12-24 00:25:55 +00:00
{
2018-03-05 07:46:34 +00:00
"builders": [{
2018-03-08 14:35:38 +00:00
"vm_name": "ERPNext-Production-{{isotime \"20060102150405\"}}",
2018-03-18 14:43:30 +00:00
"output_directory": "Production Builds",
2018-03-05 07:46:34 +00:00
"type": "virtualbox-iso",
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=ubuntu<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
2015-12-24 00:25:55 +00:00
"format": "ova",
2018-03-05 07:46:34 +00:00
"guest_os_type": "Ubuntu_64",
2015-12-24 00:25:55 +00:00
"headless": true,
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.6-server-amd64.iso",
"iso_checksum": "ac8a79a86a905ebdc3ef3f5dd16b7360",
2018-03-05 07:46:34 +00:00
"iso_checksum_type": "md5",
2015-12-24 00:25:55 +00:00
"ssh_username": "frappe",
"ssh_password": "frappe",
2018-03-05 07:46:34 +00:00
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"http_directory": "http",
2015-12-24 00:25:55 +00:00
"guest_additions_mode": "disable",
2018-03-05 07:46:34 +00:00
"virtualbox_version_file": ".vbox_version",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"export_opts": [
"--vsys", "0",
"--product", "ERPNext",
"--producturl", "https://erpnext.com",
"--vendor", "Frappe Techonologies",
"--vendorurl", "https://frappe.io",
"--description", "ERPNext Evaluation VM"
],
"shutdown_command": "echo 'frappe'|sudo -S shutdown -P now",
2015-12-24 00:25:55 +00:00
"vboxmanage": [
2018-03-05 07:46:34 +00:00
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
2015-12-24 00:25:55 +00:00
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
2018-03-05 07:46:34 +00:00
[ "modifyvm", "{{.Name}}", "--audio", "none" ],
2015-12-24 00:25:55 +00:00
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_ssh,tcp,,3022,,22" ],
[ "modifyvm", "{{.Name}}", "--natpf1", "vm_http,tcp,,8080,,80" ]
]
2018-03-05 07:46:34 +00:00
}],
2015-12-24 00:25:55 +00:00
"provisioners": [{
"type": "shell",
2018-03-05 07:46:34 +00:00
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/debian_family/install_ansible.sh"
2015-12-24 00:25:55 +00:00
}, {
2018-03-05 07:46:34 +00:00
"type": "shell",
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/debian_family/setup.sh"
2015-12-24 00:25:55 +00:00
}, {
"type": "shell",
2018-03-05 07:46:34 +00:00
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
2018-03-08 14:35:38 +00:00
"script": "scripts/debian_family/install_erpnext_production.sh"
2018-03-05 07:46:34 +00:00
}, {
"type": "shell",
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/debian_family/cleanup.sh"
2015-12-24 00:25:55 +00:00
}, {
"type": "shell",
2018-03-31 18:40:31 +00:00
"script": "scripts/set_message_production.sh"
}, {
"type": "shell",
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/restart_supervisor.sh"
2018-03-08 14:35:38 +00:00
}],
"post-processors": [{
"type": "checksum",
2018-03-31 18:07:40 +00:00
"checksum_types": ["md5"]
2015-12-24 00:25:55 +00:00
}]
}