-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmware.json
53 lines (52 loc) · 1.51 KB
/
vmware.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
{
"builders": [
{
"type": "vmware-vmx",
"vm_name": "SmartOS",
"source_path": "/opt/smartosx/vm_cache/SmartOS.vmwarevm/SmartOS.vmx",
"output_directory": "/opt/smartosx/SmartOS.vmwarevm/",
"headless": false,
"boot_command": [
"<return><wait10>",
"y<return><wait>",
"172.16.109.99<return><wait>",
"255.255.255.0<return><wait>",
"172.16.109.2<return><wait>",
"8.8.8.8<return><wait>",
"8.8.4.4<return><wait>",
"gz.local<return><wait>",
"local<return><wait>",
"c0t1d0<return><wait>",
"root<return><wait>",
"root<return><wait>",
"y<return><wait>",
"n<return><wait>",
"y<return><wait>"
],
"boot_wait": "5s",
"shutdown_command": "poweroff",
"shutdown_timeout": "15s",
"ssh_password": "root",
"ssh_username": "root",
"ssh_host": "172.16.109.99"
}
],
"post-processors": null,
"provisioners": [
{
"inline": [
"echo 'export PATH=/opt/local/sbin:/opt/local/bin:$PATH' >> /root/.bashrc",
"echo 172.16.109.1 osx.local salt >> /etc/hosts",
"hostname gz.local",
"echo install pkgsrc 2014Q3",
"cd /",
"curl -k http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q3-x86_64.tar.gz | gzcat | tar -xf -",
"export PATH=/opt/local/sbin:/opt/local/bin:$PATH",
"pkg_admin rebuild",
"pkgin -y up",
"pkgin -y in salt"
],
"type": "shell"
}
]
}