Created
August 23, 2014 17:28
-
-
Save hyperfocus1338/38566267cb6f4ed6d447 to your computer and use it in GitHub Desktop.
Virtualbox packer template converted from Veewee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", | |
"scripts": [ | |
"provision/shell/build_time.sh", | |
"provision/shell/apt.sh", | |
"provision/shell/sudo.sh", | |
"provision/shell/vagrant.sh", | |
"provision/shell/vbox.sh", | |
"provision/shell/cleanup.sh", | |
"provision/shell/ansible.sh" | |
]}, | |
{ | |
"type": "ansible-local", | |
"playbook_file": "provision/ansible/local.yml" | |
} | |
], | |
"builders": [ | |
{ | |
"type": "virtualbox-iso", | |
"boot_command": [ | |
"<esc><esc><enter><wait>", | |
"/install/vmlinuz noapic preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>", | |
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us <wait>", | |
"hostname={{ .Name }} <wait>", | |
"fb=false debconf/frontend=noninteractive <wait>", | |
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=us keyboard-configuration/variant=us console-setup/ask_detect=false <wait>", | |
"initrd=/install/initrd.gz -- <enter><wait>" | |
], | |
"boot_wait": "10s", | |
"disk_size": 20480, | |
"guest_os_type": "Ubuntu_64", | |
"http_directory": "http", | |
"iso_checksum": "01545fa976c8367b4f0d59169ac4866c", | |
"iso_checksum_type": "md5", | |
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso", | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"ssh_port": 22, | |
"ssh_wait_timeout": "10000s", | |
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'", | |
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | |
"virtualbox_version_file": ".vbox_version", | |
"vm_name": "ubuntu-14.04-server-amd64", | |
"vboxmanage": [ | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--memory", | |
"512" | |
], | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--cpus", | |
"1" | |
] | |
] | |
} | |
], | |
"post-processors": [ | |
{ | |
"output": "builds/ubuntu-14.04-server-amd64.box", | |
"type": "vagrant" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment