This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdebian_esx.json
100 lines (100 loc) · 3.32 KB
/
debian_esx.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
{
"variables": {
"boot_command_prefix": "",
"esxi_remote_host": "",
"esxi_remote_password": "",
"esxi_remote_username": "",
"iso_checksum": "",
"iso_checksum_type": "",
"iso_url": "",
"vcenter_datacenter": "",
"vcenter_datastore": "",
"vcenter_host": "",
"vcenter_insecure": "",
"vcenter_password": "",
"vcenter_username": "",
"vm_disk_adapter_type": "",
"vm_disk_size": "",
"vm_guest_os_type": "debian8-64",
"vm_memory": "",
"vm_name": "",
"vm_network": "",
"vm_ssh_password": "",
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [
{
"boot_command": [
"{{ user `boot_command_prefix` }}",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"netcfg/get_domain=vm <wait>",
"netcfg/get_hostname=packer <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": "thin",
"guest_os_type": "{{ user `vm_guest_os_type` }}",
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"name": "{{ user `vm_name` }}-{{ timestamp }}",
"output_directory": "{{ user `vm_name` }}-{{ timestamp }}",
"remote_datastore": "{{ user `vcenter_datastore` }}",
"remote_host": "{{ user `esxi_remote_host` }}",
"remote_password": "{{ user `esxi_remote_password` }}",
"remote_type": "esx5",
"remote_username": "{{ user `esxi_remote_username` }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vnc_disable_password": true,
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}",
"ethernet0.networkName": "{{ user `vm_network` }}",
"ethernet0.present": "TRUE",
"ethernet0.startConnected": "TRUE",
"ethernet0.virtualDev": "vmxnet3",
"ethernet0.addressType": "generated",
"ethernet0.wakeOnPcktRcv": "FALSE"
}
}
],
"provisioners": [
{
"type": "shell",
"scripts": ["scripts/base.sh", "scripts/vmware.sh", "scripts/cleanup.sh"]
}
],
"post-processors": [
{
"datacenter": "{{ user `vcenter_datacenter` }}",
"host": "{{ user `vcenter_host` }}",
"insecure": "{{ user `vcenter_insecure`}}",
"password": "{{ user `vcenter_password` }}",
"type": "vsphere-template",
"username": "{{ user `vcenter_username` }}"
},
{
"type": "manifest",
"output": "manifest.json",
"strip_path": true
}
]
}