Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"builders": [
{
"type": "virtualbox-iso",
"iso_url": "http://releases.ubuntu.com/trusty/ubuntu-14.04.1-server-amd64.iso",
"iso_checksum": "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2",
"iso_checksum_type": "sha256",
"boot_wait": "5s",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_wait_timeout": "20m",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"ssh_username": "vagrant",
"ssh_password": "vagrant"
}
],
"provisioners": [
{
"type": "shell",
"script": "scripts/vagrant.sh",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
},
{
"type": "shell",
"script": "scripts/fusion.sh",
"override": {
"virtualbox-iso": {
"execute_command": "/bin/true"
}
}
},
{
"type": "shell",
"script": "scripts/virtualbox.sh",
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
}
},
{
"type": "shell",
"script": "scripts/puppet.sh",
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
}
},
{
"type": "puppet-masterless",
"module_paths": ["./modules/"],
"manifest_dir": "manifests/",
"manifest_file": "manifests/site.pp"
},
{
"type": "shell",
"scripts": [
"scripts/vm_cleanup.sh"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment