forked from dougm/packer-esxi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.json
116 lines (116 loc) · 3.55 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"builders": [
{
"boot_wait": "15s",
"headless": false,
"shutdown_command": "/bin/halt",
"source_path": "./pcf-exsi55.vmx",
"ssh_password": "virtualize",
"ssh_username": "root",
"ssh_wait_timeout": "3m",
"type": "vmware-vmx",
"vm_name": "esxi55-pcf",
"vmx_data": {
"RemoteDisplay.vnc.webSocket.port": "5900",
"cpuid.coresPerSocket": "2",
"memsize": "4096",
"numvcpus": "4",
"vhv.enable": "TRUE"
}
},
{
"boot_command": [
"O<wait>",
" ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "15s",
"disk_size": 750000,
"disk_type_id": "0",
"guest_os_type": "vmkernel5",
"headless": false,
"http_directory": "http",
"iso_checksum": "36dfcb269a20d7bfe7323f825128e1a8",
"iso_checksum_type": "md5",
"iso_urls": [
"./VMware-VMvisor-Installer-5.5.0.update01-1623387.x86_64.iso"
],
"shutdown_command": "/bin/halt",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "root",
"ssh_wait_timeout": "20m",
"type": "vmware-iso",
"vm_name": "esxi55",
"vmdk_name": "esxi55",
"vmx_data": {
"RemoteDisplay.vnc.webSocket.port": "5900",
"cpuid.coresPerSocket": "2",
"memsize": "4096",
"numvcpus": "4",
"vhv.enable": "TRUE"
}
},
{
"boot_command": [
"O<wait>",
" ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "15s",
"disk_size": 750000,
"guest_additions_mode": "disable",
"guest_os_type": "Linux_64",
"headless": false,
"http_directory": "http",
"iso_checksum": "36dfcb269a20d7bfe7323f825128e1a8",
"iso_checksum_type": "md5",
"iso_urls": [
"./VMware-VMvisor-Installer-5.5.0.update01-1623387.x86_64.iso"
],
"shutdown_command": "/bin/halt",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "root",
"ssh_wait_timeout": "20m",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"4096"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"4"
]
],
"vm_name": "esxi55"
}
],
"post-processors": [
{
"output": "{{.Provider}}_esxi55.box",
"type": "vagrant"
}
],
"provisioners": [
{
"inline": [
"esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1"
],
"type": "shell"
},
{
"destination": "/etc/rc.local.d/local.sh",
"source": "local.sh",
"type": "file"
},
{
"destination": "/etc/ssh/keys-root/authorized_keys",
"source": "vagrant.pub",
"type": "file"
}
]
}