Created
July 8, 2016 22:36
-
-
Save oneingan/4ddf3d26b049a4a480faa02100aea98f 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
| { | |
| "variables": { | |
| "box_basename": "centos-5.11-i386", | |
| "build_timestamp": "{{isotime \"20060102150405\"}}", | |
| "cpus": "1", | |
| "disk_size": "4096", | |
| "git_revision": "__unknown_git_revision__", | |
| "headless": "", | |
| "http_proxy": "{{env `http_proxy`}}", | |
| "https_proxy": "{{env `https_proxy`}}", | |
| "iso_checksum": "66d7aa1be7f7aa327b823a706b04b37e219cea67c4eadd9185e8de5e3c4fb08d", | |
| "iso_checksum_type": "sha256", | |
| "iso_name": "CentOS-5.11-i386-bin-DVD-1of2.iso", | |
| "ks_path": "centos-5.11/ks.cfg", | |
| "memory": "512", | |
| "metadata": "floppy/dummy_metadata.json", | |
| "mirror": "http://mirrors.kernel.org/centos", | |
| "mirror_directory": "5.11/isos/i386", | |
| "name": "centos-5.11-i386", | |
| "no_proxy": "{{env `no_proxy`}}", | |
| "template": "centos-5.11-i386", | |
| "version": "2.1.TIMESTAMP" | |
| }, | |
| "builders": [ | |
| { | |
| "accelerator": "kvm", | |
| "boot_command": [ | |
| "<tab> text ext4 ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}} <enter><wait>" | |
| ], | |
| "boot_wait": "5s", | |
| "disk_size": "{{user `disk_size`}}", | |
| "disk_discard": "unmap", | |
| "disk_compression": true, | |
| "skip_compaction": false, | |
| "format": "qcow2", | |
| "headless": "{{ user `headless` }}", | |
| "http_directory": "http", | |
| "iso_checksum": "{{user `iso_checksum`}}", | |
| "iso_checksum_type": "{{user `iso_checksum_type`}}", | |
| "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | |
| "output_directory": "packer-{{user `template`}}-qemu", | |
| "shutdown_command": "/sbin/halt -h -p", | |
| "ssh_password": "vagrant", | |
| "ssh_port": 22, | |
| "ssh_username": "root", | |
| "ssh_wait_timeout": "10000s", | |
| "type": "qemu", | |
| "vm_name": "{{ user `template` }}" | |
| } | |
| ] | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment