Created
September 4, 2017 14:25
-
-
Save soulsearcher/edff866dfad4ce03b97a6f6bb3443985 to your computer and use it in GitHub Desktop.
packer configuration
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": [ | |
{ | |
"type": "virtualbox-iso", | |
"guest_os_type": "RedHat_64", | |
"iso_url": "http://ftp.daumkakao.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso", | |
"iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a", | |
"iso_checksum_type": "sha256", | |
"http_directory": "http", | |
"boot_command": "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks-centos73-1611.cfg<enter><wait>", | |
"ssh_username": "root", | |
"ssh_password": "vagrant", | |
"disk_size": 8192, | |
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now", | |
"format": "ova", | |
"output_directory": "packer-provision-output", | |
"vm_name": "centos7-1611-provision" | |
} | |
], | |
"provisioners" : [ | |
{ | |
"type": "shell", | |
"inline": [ | |
"sleep 30", | |
"sudo yum -y update" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment