Skip to content

Instantly share code, notes, and snippets.

@seanhagen
Created January 30, 2014 01:41
Show Gist options
  • Save seanhagen/8701111 to your computer and use it in GitHub Desktop.
Save seanhagen/8701111 to your computer and use it in GitHub Desktop.
{
"builders": [
{
"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>"
],
"boot_wait": "5s",
"guest_os_type": "Ubuntu_64",
"http_directory": "preseed",
"iso_checksum": "4d1a8b720cdd14b76ed9410c63a00d0e",
"iso_checksum_type": "md5",
"iso_url": "http://192.168.0.172/ubuntu-13.10-server-amd64.iso",
"output_directory": "ubuntu64_basebox_virtualbox",
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"type": "virtualbox-iso"
}
],
"post-processors": [
"vagrant"
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | sudo -S sh '{{ .Path }}'",
"inline": [
"apt-get update -y",
"apt-get install -y linux-headers-$(uname -r) build-essential dkms",
"apt-get clean",
"mount -o loop VBoxGuestAdditions.iso /media/cdrom",
"sh /media/cdrom/VBoxLinuxAdditions.run",
"umount /media/cdrom",
"mkdir ~/.ssh",
"wget -qO- https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub >> ~/.ssh/authorized_keys",
"echo 'vagrant ALL=NOPASSWD:ALL' > /tmp/vagrant",
"chmod 0440 /tmp/vagrant",
"mv /tmp/vagrant /etc/sudoers.d/"
],
"type": "shell"
},
{
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
}
},
"scripts": [
"scripts/puppet.sh"
],
"type": "shell"
},
{
"facter": {
"php-mode": "development"
},
"manifest_file": "support/manifests/site.pp",
"module_paths": [
"support/modules"
],
"type": "puppet-masterless"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment