Skip to content

Instantly share code, notes, and snippets.

@soulsearcher
Created September 4, 2017 14:25
Show Gist options
  • Save soulsearcher/edff866dfad4ce03b97a6f6bb3443985 to your computer and use it in GitHub Desktop.
Save soulsearcher/edff866dfad4ce03b97a6f6bb3443985 to your computer and use it in GitHub Desktop.
packer configuration
{
"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