-
Notifications
You must be signed in to change notification settings - Fork 24
/
template.json
60 lines (60 loc) · 1.42 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
{
"provisioners": [
{
"type": "shell",
"inline": [
"esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1"
]
},
{
"type": "file",
"source": "local.sh",
"destination": "/etc/rc.local.d/local.sh"
},
{
"type": "file",
"source": "vagrant.pub",
"destination": "/etc/ssh/keys-root/authorized_keys"
}
],
"builders": [
{
"type": "vmware",
"headless": true,
"vm_name": "esxi55",
"vmdk_name": "esxi55",
"disk_type_id": "0",
"boot_command": [
"O<wait>",
" ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "15s",
"disk_size": 20140,
"guest_os_type": "vmkernel5",
"http_directory": "http",
"iso_checksum": "9aaa9e0daa424a7021c7dc13db7b9409",
"iso_checksum_type": "md5",
"iso_urls": [
"./VMware-VMvisor-Installer-5.5.0-1331820.x86_64.iso"
],
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "20m",
"shutdown_command": "/bin/halt",
"vmx_data": {
"memsize": "4096",
"numvcpus": "2",
"cpuid.coresPerSocket": "2",
"vhv.enable": "TRUE",
"RemoteDisplay.vnc.webSocket.port": "6550"
}
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{.Provider}}_esxi55.box"
}
]
}