Skip to content
Permalink
e42bc5c08d
Go to file
 
 
Cannot retrieve contributors at this time
58 lines (58 sloc) 1.62 KB
{
"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": "vmware-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": "centos-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",
"tools_upload_flavor": "linux",
"vm_name": "packer-centos-7-x86_64",
"vmdk_name": "packer-centos-7-x86_64-disk0",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "512",
"numvcpus": "2"
}
}
],
"post-processors": [
{
"output": "builds/packer_centos7_{{.BuilderType}}.tar",
"type": "compress"
}
]
}
You can’t perform that action at this time.