Skip to content
Permalink
Browse files

Adding dumb copy of VirtualBox specific packer command

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 17, 2016
1 parent 84cfffe commit 906381a79cef25be2a20d571cfb9ebc67bbb3741
Showing with 51 additions and 0 deletions.
  1. +51 −0 centos7-vbox.json
@@ -0,0 +1,51 @@
{
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'packer' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/ansible.sh"
},
{
"type": "ansible-local",
"playbook_file": "ansible/main.yml"
},
{
"type": "shell",
"execute_command": "echo 'packer' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh"
}
],
"builders": [
{
"type": "virtualbox-iso",
"name": "centos-7-vmx",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 81920,
"guest_os_type": "RedHat_64",
"headless": true,
"http_directory": "http",
"iso_urls": [
"CentOS-7-x86_64-Minimal-1511.iso",
"http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso"
],
"iso_checksum_type": "md5",
"iso_checksum": "88c0437f0a14c6e2c94426df9d43cd67",
"output_directory": "img-centos-7-vmware",
"ssh_username": "packer",
"ssh_password": "changeme1234",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'packer'|sudo -S /sbin/halt -h -p",
"vm_name": "packer-centos-7-x86_64"
}
],
"post-processors": [
{
"output": "builds/packer_centos7_{{.BuilderType}}.tar",
"type": "compress"
}
]
}

0 comments on commit 906381a

Please sign in to comment.
You can’t perform that action at this time.