{ "builders": [{ "name": "photon-build-machine", "vm_name": "photon-build-machine", "vmdk_name": "photon-build-machine-disk0", "type": "vmware-iso", "headless": true, "disk_size": 40960, "disk_type_id": 0, "guest_os_type": "ubuntu-64", "iso_url": "http://ubuntu.bhs.mirrors.ovh.net/ftp.ubuntu.com/releases/trusty/ubuntu-14.04.3-server-amd64.iso", "iso_checksum": "0501c446929f713eb162ae2088d8dc8b6426224a", "iso_checksum_type": "sha1", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_wait_timeout": "60m", "shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", "http_directory": ".", "tools_upload_flavor": "linux", "boot_command": [ "<esc><esc><enter><wait>", "/install/vmlinuz noapic ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/scripts/ubuntu-preseed.cfg ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", "hostname=photon-build-machine ", "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", "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", "script": "scripts/ubuntu-vmware-tools_install.sh" }, { "type": "shell", "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", "script": "scripts/ubuntu-puppet_install.sh" }, { "type": "puppet-masterless", "execute_command": "{{.FacterVars}}{{if .Sudo}} echo 'vagrant' | sudo -E -S {{end}} puppet apply --verbose --modulepath='{{.ModulePath}}' {{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}} {{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}} --detailed-exitcodes {{.ManifestFile}}", "manifest_file": "puppet/manifests/vagrant.pp", "manifest_dir": "puppet/manifests", "module_paths": [ "puppet/modules" ] }, { "type": "shell", "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", "script": "scripts/ubuntu-install-docker.sh" }, { "type": "shell", "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", "script": "scripts/ubuntu-vmware-final_cleanup.sh" }], "post-processors": [{ "type": "vagrant", "compression_level": 9, "output": "{{.BuildName}}.box" }] }