-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtemplate.json
60 lines (60 loc) · 1.31 KB
/
template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel6.ks.cfg<enter><wait>"
],
"boot_wait": "5s",
"disk_size": "30720",
"guest_os_type": "rhel6-64",
"headless": false,
"http_directory": "http",
"iso_checksum": "8e412886d663959f31c760d883bcd7b9",
"iso_checksum_type": "none",
"iso_url": "file:/iso/rhel-server-6.5-x86_64-boot.iso",
"name": "rhel6-64",
"shutdown_command": "shutdown -h now",
"skip_compaction": false,
"ssh_password": "install",
"ssh_port": 22,
"ssh_username": "root",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"type": "vsphere",
"host": "vslab.dky.io",
"username": "[email protected]",
"password": "example",
"datacenter": "labdc",
"cluster": "openstack",
"resource_pool": " ",
"datastore": "ds1",
"vm_folder": "/",
"vm_name": "packer-rhel6-64",
"vm_network": "Production",
"insecure": "true"
}
],
"provisioners": [
{
"scripts": [
"scripts/vagrant.sh",
"scripts/mac.sh",
"scripts/sudo.sh",
"scripts/ssh.sh",
"scripts/vmtools.sh",
"scripts/zero.sh"
],
"type": "shell"
}
]
}