-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin2016.json
69 lines (67 loc) · 2.22 KB
/
win2016.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
{
"variables": {
"vcenter_server": "{{ env `VCENTER_SERVER` }}",
"vcenter_datacenter": "{{ env `VCENTER_DATACENTER` }}",
"vcenter_cluster": "{{ env `VCENTER_CLUSTER` }}",
"vcenter_datastore": "{{ env `VCENTER_DATASTORE` }}",
"vcenter_host": "{{ env `VCENTER_HOST` }}",
"vcenter_user": "{{ env `VCENTER_USER` }}",
"vcenter_password": "{{ env `VCENTER_PASSWORD` }}",
"vcenter_network": "{{ env `VCENTER_NETWORK` }}",
"win_user": "Administrator",
"win_password": "P@cker!"
},
"builders": [
{
"type": "vsphere-iso",
"vcenter_server": "{{user `vcenter_server` }}",
"datacenter": "{{ user `vcenter_datacenter` }}",
"cluster": "{{ user `vcenter_cluster` }}",
"datastore": "{{ user `vcenter_datastore` }}",
"host": "{{ user `vcenter_host` }}",
"username": "{{ user `vcenter_user` }}",
"password": "{{ user `vcenter_password` }}",
"insecure_connection": "true",
"convert_to_template": "true",
"vm_name": "packer-win2016-{{ isotime \"060102\" }}",
"folder": "Templates",
"guest_os_type": "windows9Server64Guest",
"communicator": "winrm",
"winrm_timeout": "2h",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_username": "{{ user `win_user` }}",
"winrm_password": "{{ user `win_password` }}",
"CPUs": 2,
"CPU_limit": -1,
"RAM": 8192,
"disk_controller_type": "pvscsi",
"disk_size": 60000,
"disk_thin_provisioned": true,
"network_card": "vmxnet3",
"network": "{{ user `vcenter_network` }}",
"iso_paths": [
"[EB_SAN01_Linear_VL01] ISO/SW_DVD9_WIN_SERVER_STD_CORE_2016_64BIT_ENGLISH_-4_DC_STD_MLF_X21-70526.ISO",
"[EB_SAN01_Linear_VL01] ISO/vmtools/VMware-tools-windows-10.3.5-10430147.iso"
],
"floppy_files": [
"{{template_dir}}/bootstrap/2016/",
"{{template_dir}}/scripts/vmtools.ps1",
"{{template_dir}}/scripts/winrm.ps1"
]
}
],
"provisioners": [
{
"type": "powershell",
"script": "{{template_dir}}/scripts/configure-host.ps1"
},
{
"type": "windows-update"
},
{
"type": "powershell",
"script": "{{template_dir}}/scripts/cleanup.ps1"
}
]
}