-
Notifications
You must be signed in to change notification settings - Fork 3
/
windows2016vda.json
131 lines (131 loc) · 3.43 KB
/
windows2016vda.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"variables": {
"client_id": "{{env `client_id`}}",
"client_secret": "{{env `client_secret`}}",
"subid": "{{env `subid`}}",
"tenantid": "{{env `tenantid`}}",
"rgname": "{{env `rgname`}}",
"storage_account": "{{env `storage_account`}}",
"citrixusername": "{{env `mycitrix_USR`}}",
"citrixpassword": "{{env `mycitrix_PSW`}}",
"vdacontrollers": "{{env `vdacontrollers`}}",
"vda": "{{env `vda`}}"
},
"builders": [
{
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subid`}}",
"tenant_id": "{{user `tenantid`}}",
"resource_group_name": "{{user `rgname`}}",
"capture_container_name": "vdas",
"capture_name_prefix": "ctxvda",
"storage_account": "{{user `storage_account`}}",
"os_type": "Windows",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2016-Datacenter",
"communicator": "winrm",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "3m",
"winrm_username": "packer",
"azure_tags": {
"dept": "Engineering",
"task": "Image deployment"
},
"location": "centralus",
"vm_size": "Standard_DS2_v2"
}
],
"provisioners": [
{
"type": "powershell",
"script": "features.ps1",
"environment_vars":[
"WINRMPASS={{.WinRMPassword}}"
]
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "modules.ps1"
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "choco.ps1"
},
{
"type": "powershell",
"script": "Download1906ServerVDA.ps1",
"environment_vars":[
"citrixusername={{user `citrixusername`}}",
"citrixpassword={{user `citrixpassword`}}",
"vda={{user `vda`}}"
]
},
{
"type": "powershell",
"script": "DownloadCTXOptimizer.ps1",
"environment_vars":[
"citrixusername={{user `citrixusername`}}",
"citrixpassword={{user `citrixpassword`}}"
]
},
{
"type": "powershell",
"script": "ctxvda.ps1",
"environment_vars":[
"vda={{user `vda`}}",
"vdacontrollers={{user `vdacontroller`}}"
]
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "ctxvda.ps1",
"environment_vars":[
"vda={{user `vda`}}",
"vdacontrollers={{user `vdacontroller`}}"
]
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"inline": ["get-hotfix|Select-Object description,hotfixid,caption|sort-object HotFixID|ConvertTo-Json|Out-File 'c:\\windows\\temp\\hotfix.json' -force"]
},
{
"type": "file",
"source": "c:\\windows\\temp\\hotfix.json",
"destination": "./hotfix.json",
"direction": "download"
},
{
"type": "powershell",
"inline": ["get-package|Select-Object Name,Version,Source,ProviderName|sort-object Name|ConvertTo-Json|Out-File 'c:\\windows\\temp\\package.json' -force"]
},
{
"type": "file",
"source": "c:\\windows\\temp\\package.json",
"destination": "./package.json",
"direction": "download"
}
],
"post-processors": [
{
"type": "manifest",
"output": "manifest.json",
"strip_path": true
}
]
}