Skip to content
Permalink
Newer
Older
100644 58 lines (58 sloc) 1.62 KB
Jim Van Fleet
Jul 7, 2016
1
{
2
"provisioners": [
3
{
4
"type": "shell",
5
"execute_command": "echo 'packer' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
6
"script": "scripts/ansible.sh"
7
},
8
{
9
"type": "ansible-local",
10
"playbook_file": "ansible/main.yml"
11
},
12
{
13
"type": "shell",
14
"execute_command": "echo 'packer' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
15
"script": "scripts/cleanup.sh"
16
}
17
],
18
"builders": [
19
{
20
"type": "vmware-iso",
21
"name": "centos-7-vmx",
22
"boot_command": [
23
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
24
],
25
"boot_wait": "10s",
26
"disk_size": 81920,
27
"guest_os_type": "centos-64",
28
"headless": true,
29
"http_directory": "http",
30
"iso_urls": [
31
"CentOS-7-x86_64-Minimal-1511.iso",
32
"http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso"
33
],
34
"iso_checksum_type": "md5",
35
"iso_checksum": "88c0437f0a14c6e2c94426df9d43cd67",
36
"output_directory": "img-centos-7-vmware",
37
"ssh_username": "packer",
38
"ssh_password": "changeme1234",
39
"ssh_port": 22,
40
"ssh_wait_timeout": "10000s",
41
"shutdown_command": "echo 'packer'|sudo -S /sbin/halt -h -p",
42
"tools_upload_flavor": "linux",
43
"vm_name": "packer-centos-7-x86_64",
44
"vmdk_name": "packer-centos-7-x86_64-disk0",
45
"vmx_data": {
46
"cpuid.coresPerSocket": "1",
47
"memsize": "512",
48
"numvcpus": "2"
49
}
50
}
51
],
52
"post-processors": [
53
{
54
"output": "builds/packer_centos7_{{.BuilderType}}.tar",
55
"type": "compress"
56
}
57
]
58
}
You can’t perform that action at this time.