73 lines
2.1 KiB
JSON
73 lines
2.1 KiB
JSON
{
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"scripts/base.sh",
|
|
"scripts/vagrant.sh",
|
|
"scripts/virtualbox.sh",
|
|
"scripts/ruby.sh",
|
|
"scripts/chef.sh",
|
|
"scripts/cleanup.sh",
|
|
"scripts/zerodisk.sh"
|
|
],
|
|
"override": {
|
|
"virtualbox-iso": {
|
|
"execute_command": "echo 'vagrant'|sudo -S bash -c 'source /root/.bashrc && bash {{.Path}}'"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox-iso",
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"install <wait>",
|
|
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
|
|
"debian-installer=en_US <wait>",
|
|
"auto <wait>",
|
|
"locale=en_US <wait>",
|
|
"kbd-chooser/method=us <wait>",
|
|
"netcfg/get_hostname=hLinux <wait>",
|
|
"netcfg/get_domain=vagrantup.com <wait>",
|
|
"fb=false <wait>",
|
|
"debconf/frontend=noninteractive <wait>",
|
|
"console-setup/ask_detect=false <wait>",
|
|
"console-keymaps-at/keymap=us <wait>",
|
|
"keyboard-configuration/xkb-keymap=us <wait>",
|
|
"<enter><wait>"
|
|
],
|
|
"boot_wait": "10s",
|
|
"disk_size": 10140,
|
|
"guest_os_type": "Debian_64",
|
|
"http_directory": "http",
|
|
"iso_checksum": "72922d5b488a7d5c7ce782d55f2bd162",
|
|
"iso_checksum_type": "md5",
|
|
"iso_url": "http://hlinux-hrepo.usa.hp.com/hLinuxISO/netinstall-hLinux.iso",
|
|
"ssh_username": "vagrant",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_wait_timeout": "10000s",
|
|
"shutdown_command": "echo 'halt -p' > shutdown.sh; echo 'vagrant'|sudo -S bash -c 'source /root/.bashrc && bash shutdown.sh'",
|
|
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
|
|
"virtualbox_version_file": ".vbox_version",
|
|
"vboxmanage": [
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--memory",
|
|
"256"
|
|
],
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--cpus",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"post-processors": ["vagrant"]
|
|
}
|