Last active
December 25, 2015 10:39
-
-
Save hyperfocus1338/6962922 to your computer and use it in GitHub Desktop.
Packer configuration
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
{ | |
"builders": [ | |
{ | |
"type": "virtualbox", | |
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.3-server-amd64.iso", | |
"iso_checksum": "61d5e67c70d97b33c13537461a0b153b41304ef412bb0e9d813bb157068c3c65", | |
"iso_checksum_type": "sha256", | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"ssh_wait_timeout": "300s", | |
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant' | sudo -S sh 'shutdown.sh'", | |
"output_directory": "./packerboxes", | |
"boot_command": [ | |
"<esc><esc><enter><wait>", | |
"/install/vmlinuz noapic ", | |
"preseed/url=http://172.16.30.129/preseed.cfg ", | |
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", | |
"hostname=vagrant ", | |
"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>" | |
] | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"binary": true, | |
"script": "packerstrap.sh", | |
"execute_command": "echo 'vagrant' | sudo -E -S sh '{{ .Path }}'" | |
} | |
], | |
"post-processors": [ | |
{ | |
"type": "vagrant", | |
"only": ["virtualbox"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment