2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 12:39:01 +00:00
bench/vm/vm.json

84 lines
3.0 KiB
JSON
Raw Normal View History

2015-12-24 00:25:55 +00:00
{
2018-03-05 07:46:34 +00:00
"builders": [{
"vm_name": "ERPNext-{{isotime \"20060102150405\"}}",
"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,
2018-03-05 07:46:34 +00:00
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso",
"iso_checksum": "6a7f31eb125a0b2908cf2333d7777c82",
"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}}'",
"script": "scripts/debian_family/install_erpnext.sh"
}, {
"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-05 07:46:34 +00:00
"script": "scripts/set_message.sh"
2015-12-24 00:25:55 +00:00
}]
}