{ "provisioners": [ { "type": "shell", "scripts": [ "scripts/postinstall.sh", "scripts/vmtools.sh", <%- @scripts.each do |script| -%> "scripts/<%= script %>", <%- end -%> "scripts/purge.sh" ], "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'" } ], "builders": [ { "name": "<%= @name %>", "type": "<%= @provider %>-iso", <%- if @provider == "vmware" -%> "guest_os_type": "ubuntu-64", "tools_upload_flavor": "linux", <%- else -%> "guest_os_type": "Ubuntu_64", <%- end -%> "headless": true, "iso_url": "http://releases.ubuntu.com/xenial/ubuntu-16.04.3-server-amd64.iso", "iso_checksum": "a06cd926f5855d4f21fb4bc9978a35312f815fbda0d0ef7fdc846861f4fc4600", "iso_checksum_type": "sha256", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_timeout": "15m", "http_directory": "templates/ubuntu", "boot_command": [ "", "", "", "", "/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 ", "grub-installer/bootdev=/dev/sda ", "initrd=/install/initrd.gz -- " ], "shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'" } ], "post-processors": [ { "type": "vagrant" } ] }