Created
February 11, 2019 22:10
-
-
Save SwampDragons/82665878d1a345d29b7f403953dac716 to your computer and use it in GitHub Desktop.
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": [ | |
{ | |
"boot_command": [ | |
"<esc><wait>", | |
"<esc><wait>", | |
"<enter><wait>", | |
"/install/vmlinuz<wait>", | |
" auto<wait>", | |
" console-setup/ask_detect=false<wait>", | |
" console-setup/layoutcode=us<wait>", | |
" console-setup/modelcode=pc105<wait>", | |
" debconf/frontend=noninteractive<wait>", | |
" debian-installer=en_US.UTF-8<wait>", | |
" fb=false<wait>", | |
" initrd=/install/initrd.gz<wait>", | |
" kbd-chooser/method=us<wait>", | |
" keyboard-configuration/layout=USA<wait>", | |
" keyboard-configuration/variant=USA<wait>", | |
" locale=en_US.UTF-8<wait>", | |
" netcfg/get_domain=vm<wait>", | |
" netcfg/get_hostname=vagrant<wait>", | |
" noapic<wait>", | |
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>", | |
" -- <wait>", | |
"<enter><wait>" | |
], | |
"boot_wait": "10s", | |
"disk_size": "{{user `disk_size`}}", | |
"guest_os_type": "ubuntu-64", | |
"headless": "{{ user `headless` }}", | |
"http_directory": "http", | |
"iso_checksum_type": "sha256", | |
"iso_checksum_url": "file:///Users/mmarsh/dev/repro_cases/packer_cache/shasums.txt", | |
"iso_url": "http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso", | |
"output_directory": "packer-{{user `template`}}-vmware", | |
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | |
"ssh_password": "vagrant", | |
"ssh_port": 22, | |
"ssh_pty": true, | |
"ssh_username": "vagrant", | |
"ssh_wait_timeout": "10000s", | |
"tools_upload_flavor": "linux", | |
"type": "vmware-iso", | |
"vm_name": "{{ user `template` }}", | |
"vmx_data": { | |
"cpuid.coresPerSocket": "1", | |
"memsize": "{{ user `memory` }}", | |
"numvcpus": "{{ user `cpus` }}" | |
} | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "ansible", | |
"user": "vagrant", | |
"playbook_file": "./ansible/playbook_remote.yml", | |
"ansible_env_vars": [ "PACKER_BUILD_NAME=wheeeeeeeeeeeeeeeeee"] | |
}, | |
{ | |
"type": "shell-local", | |
"inline": "echo the address is: $PACKER_HTTP_ADDR and build name is: $PACKER_BUILD_NAME" | |
} | |
], | |
"variables": { | |
"box_basename": "ubuntu-14.04", | |
"build_timestamp": "{{isotime \"20060102150405\"}}", | |
"cpus": "1", | |
"disk_size": "40960", | |
"headless": "", | |
"http_proxy": "{{env `http_proxy`}}", | |
"iso_name": "ubuntu-14.04.1-server-amd64.iso", | |
"memory": "1024", | |
"mirror": "http://old-releases.ubuntu.com/releases", | |
"mirror_directory": "14.04.1", | |
"name": "ubuntu-14.04", | |
"no_proxy": "{{env `no_proxy`}}", | |
"preseed_path": "preseed.cfg", | |
"template": "ubuntu-14.04-amd64", | |
"version": "1.0.{{timestamp}}" | |
} | |
} | |
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
946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2 ubuntu-14.04.1-server-amd64.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment