-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphotonos-storage-appliance.json
87 lines (86 loc) · 2.74 KB
/
photonos-storage-appliance.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
{
"min_packer_version": "1.6.3",
"variables": {
"photon_ovf_template": "photon.xml.template",
"ovftool_deploy_vcenter": "192.168.30.200",
"ovftool_deploy_vcenter_username": "[email protected]",
"ovftool_deploy_vcenter_password": "VMware1!"
},
"builders": [
{
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}",
"guest_os_type": "Other",
"version": "13",
"disk_size": 10240,
"disk_adapter_type": "pvscsi",
"disk_additional_size": [
"1024", "2048"
],
"boot_command": [
"<esc><wait>",
"vmlinuz initrd=initrd.img root=/dev/ram0 loglevel=3 insecure_installation=1 ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/photon-kickstart.json photon.media=cdrom",
"<enter>"
],
"boot_wait": "10s",
"headless": false,
"vnc_over_websocket": true,
"insecure_connection": true,
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"http_directory": "http",
"remote_type": "esx5",
"remote_host": "{{ user `builder_host` }}",
"remote_datastore": "{{ user `builder_host_datastore` }}",
"remote_username": "{{ user `builder_host_username` }}",
"remote_password": "{{ user `builder_host_password` }}",
"ssh_username": "{{ user `guest_username` }}",
"ssh_password": "{{ user `guest_password` }}",
"ssh_port": 22,
"ssh_timeout": "20m",
"format": "ovf",
"shutdown_command": "/sbin/shutdown -h now",
"shutdown_timeout": "1000s",
"vmx_data": {
"numvcpus": "{{ user `numvcpus` }}",
"memsize": "{{ user `ramsize` }}",
"ethernet0.networkName": "{{ user `builder_host_portgroup` }}",
"ethernet0.present": "TRUE",
"ethernet0.startConnected": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"ethernet0.addressType": "generated",
"ethernet0.wakeOnPcktRcv": "FALSE",
"annotation": "Version: {{ user `version` }}"
}
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/photon-settings.sh",
"scripts/photon-cleanup.sh"
]
},
{
"type": "file",
"source": "files/rc.local",
"destination": "/etc/rc.d/rc.local"
},
{
"type": "file",
"source": "files/setup.sh",
"destination": "/root/setup.sh"
}
],
"post-processors": [
{
"type": "shell-local",
"environment_vars": ["PHOTON_VERSION={{ user `version` }}", "PHOTON_APPLIANCE_NAME={{ user `vm_name` }}", "FINAL_PHOTON_APPLIANCE_NAME={{ user `vm_name` }}_{{user `version`}}", "PHOTON_OVF_TEMPLATE={{ user `photon_ovf_template` }}"],
"inline": [
"cd manual",
"./add_ovf_properties.sh"
]
}
]
}