|
| 1 | +{ |
| 2 | + "builders": [ |
| 3 | + { |
| 4 | + "type": "vmware-iso", |
| 5 | + "boot_command": [ |
| 6 | + "<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", |
| 7 | + "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", |
| 8 | + "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", |
| 9 | + "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", |
| 10 | + "/install/vmlinuz<wait>", |
| 11 | + " auto<wait>", |
| 12 | + " console-setup/ask_detect=false<wait>", |
| 13 | + " console-setup/layoutcode=us<wait>", |
| 14 | + " debconf/frontend=noninteractive<wait>", |
| 15 | + " debian-installer=en_US<wait>", |
| 16 | + " fb=false<wait>", |
| 17 | + " initrd=/install/initrd.gz<wait>", |
| 18 | + " keyboard-configuration/layout=USA<wait>", |
| 19 | + " keyboard-configuration/variant=USA<wait>", |
| 20 | + " locale=en_US<wait>", |
| 21 | + " netcfg/get_domain=vm<wait>", |
| 22 | + " netcfg/get_hostname=rubber-docker<wait>", |
| 23 | + " grub-installer/bootdev=/dev/sda<wait>", |
| 24 | + " noapic<wait>", |
| 25 | + " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", |
| 26 | + " -- <wait>", |
| 27 | + "<enter><wait>" |
| 28 | + ], |
| 29 | + "boot_wait": "10s", |
| 30 | + "disk_size": 20480, |
| 31 | + "guest_os_type": "ubuntu-64", |
| 32 | + "headless": true, |
| 33 | + "http_directory": "http", |
| 34 | + "iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso", |
| 35 | + "iso_checksum_type": "sha256", |
| 36 | + "iso_checksum": "0a03608988cfd2e50567990dc8be96fb3c501e198e2e6efcb846d89efc7b89f2", |
| 37 | + "output_directory": "packer-rubber-docker-ubuntu-16.04-vmware", |
| 38 | + "shutdown_command": "echo 'ubuntu'|sudo -S shutdown -P now", |
| 39 | + "ssh_password": "ubuntu", |
| 40 | + "ssh_port": 22, |
| 41 | + "ssh_username": "ubuntu", |
| 42 | + "ssh_wait_timeout": "10000s", |
| 43 | + "tools_upload_flavor": "linux", |
| 44 | + "vm_name": "rubber-docker-ubuntu-16.04", |
| 45 | + "vmx_data": { |
| 46 | + "cpuid.coresPerSocket": "1", |
| 47 | + "memsize": "1024", |
| 48 | + "numvcpus": "1" |
| 49 | + } |
| 50 | + } |
| 51 | + ], |
| 52 | + "provisioners": [ |
| 53 | + { |
| 54 | + "type": "file", |
| 55 | + "source": "vimrc", |
| 56 | + "destination": "/tmp/vimrc" |
| 57 | + }, |
| 58 | + { |
| 59 | + "type": "shell", |
| 60 | + "script": "bootstrap.sh" |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
0 commit comments