|
18 | 18 | "{{user `scripts_dir`}}/configs/microsoft-updates.bat", |
19 | 19 | "{{user `scripts_dir`}}/configs/win-updates.ps1", |
20 | 20 | "{{user `scripts_dir`}}/installs/openssh.ps1", |
21 | | - "{{user `scripts_dir`}}/installs/install_dotnet45.ps1", |
22 | | - "{{user `scripts_dir`}}/installs/install_wmf.ps1", |
23 | 21 | "{{user `resources_dir`}}/certs/oracle-cert.cer", |
24 | 22 | "{{user `resources_dir`}}/certs/gdig2.crt", |
25 | 23 | "{{user `resources_dir`}}/certs/comodorsadomainvalidationsecureserverca.crt", |
|
56 | 54 | "{{user `scripts_dir`}}/configs/microsoft-updates.bat", |
57 | 55 | "{{user `scripts_dir`}}/configs/win-updates.ps1", |
58 | 56 | "{{user `scripts_dir`}}/installs/openssh.ps1", |
59 | | - "{{user `scripts_dir`}}/installs/install_dotnet45.ps1", |
60 | | - "{{user `scripts_dir`}}/installs/install_wmf.ps1", |
61 | 57 | "{{user `resources_dir`}}/certs/oracle-cert.cer", |
62 | 58 | "{{user `resources_dir`}}/certs/gdig2.crt", |
63 | 59 | "{{user `resources_dir`}}/certs/comodorsadomainvalidationsecureserverca.crt", |
|
99 | 95 | "{{user `scripts_dir`}}/configs/microsoft-updates.bat", |
100 | 96 | "{{user `scripts_dir`}}/configs/win-updates.ps1", |
101 | 97 | "{{user `scripts_dir`}}/installs/openssh.ps1", |
102 | | - "{{user `scripts_dir`}}/installs/install_dotnet45.ps1", |
103 | | - "{{user `scripts_dir`}}/installs/install_wmf.ps1", |
104 | 98 | "{{user `resources_dir`}}/certs/oracle-cert.cer", |
105 | 99 | "{{user `resources_dir`}}/certs/gdig2.crt", |
106 | 100 | "{{user `resources_dir`}}/certs/comodorsadomainvalidationsecureserverca.crt", |
|
150 | 144 | "{{user `scripts_dir`}}/configs/microsoft-updates.bat", |
151 | 145 | "{{user `scripts_dir`}}/configs/win-updates.ps1", |
152 | 146 | "{{user `scripts_dir`}}/installs/openssh.ps1", |
153 | | - "{{user `scripts_dir`}}/installs/install_dotnet45.ps1", |
154 | | - "{{user `scripts_dir`}}/installs/install_wmf.ps1", |
155 | 147 | "{{user `resources_dir`}}/certs/oracle-cert.cer", |
156 | 148 | "{{user `resources_dir`}}/certs/gdig2.crt", |
157 | 149 | "{{user `resources_dir`}}/certs/comodorsadomainvalidationsecureserverca.crt", |
|
184 | 176 | } |
185 | 177 | ], |
186 | 178 | "provisioners": [ |
| 179 | + { |
| 180 | + "type": "shell-local", |
| 181 | + "only_on": ["linux", "darwin"], |
| 182 | + "inline": ["cd {{user `resources_dir`}} && {{user `resources_dir`}}/download-windows-files.sh"] |
| 183 | + }, |
| 184 | + { |
| 185 | + "type": "shell-local", |
| 186 | + "only_on": ["windows"], |
| 187 | + "inline": ["cd {{user `resources_dir`}} && powershell {{user `resources_dir`}}/download-windows-files.ps1"] |
| 188 | + }, |
187 | 189 | { |
188 | 190 | "type": "file", |
189 | 191 | "source": "{{user `scripts_dir`}}", |
|
200 | 202 | "execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat", |
201 | 203 | "scripts": [ |
202 | 204 | "{{user `scripts_dir`}}/configs/update_root_certs.bat", |
203 | | - "{{user `scripts_dir`}}/configs/disable-auto-logon.bat", |
204 | 205 | "{{user `scripts_dir`}}/configs/enable-rdp.bat" |
205 | 206 | ] |
206 | 207 | }, |
|
215 | 216 | { |
216 | 217 | "type": "windows-restart" |
217 | 218 | }, |
| 219 | + { |
| 220 | + "type": "powershell", |
| 221 | + "scripts": [ |
| 222 | + "{{user `scripts_dir`}}/installs/install_dotnet45.ps1" |
| 223 | + ] |
| 224 | + }, |
| 225 | + { |
| 226 | + "type": "windows-restart" |
| 227 | + }, |
| 228 | + { |
| 229 | + "type": "powershell", |
| 230 | + "scripts": [ |
| 231 | + "{{user `scripts_dir`}}/installs/install_wmf.ps1" |
| 232 | + ] |
| 233 | + }, |
| 234 | + { |
| 235 | + "type": "windows-restart", |
| 236 | + "pause_before": "180s" |
| 237 | + }, |
218 | 238 | { |
219 | 239 | "type": "powershell", |
220 | 240 | "scripts": [ |
|
240 | 260 | "remote_path": "C:/Windows/Temp/script.bat", |
241 | 261 | "execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat", |
242 | 262 | "scripts": [ |
243 | | - "{{user `scripts_dir`}}/installs/install_boxstarter.bat", |
| 263 | + "{{user `scripts_dir`}}/configs/disable-auto-logon.bat", |
| 264 | + "{{user `scripts_dir`}}/chocolatey_installs/chocolatey-compatibility.bat", |
| 265 | + "{{user `scripts_dir`}}/chocolatey_installs/boxstarter.bat", |
244 | 266 | "{{user `scripts_dir`}}/chocolatey_installs/7zip.bat", |
245 | 267 | "{{user `scripts_dir`}}/configs/apply_password_settings.bat", |
246 | 268 | "{{user `scripts_dir`}}/configs/create_users.bat", |
|
267 | 289 | "{{user `scripts_dir`}}/installs/install_wordpress.bat", |
268 | 290 | "{{user `scripts_dir`}}/installs/install_openjdk6.bat", |
269 | 291 | "{{user `scripts_dir`}}/installs/setup_jmx.bat", |
270 | | - "{{user `scripts_dir`}}/installs/install_ruby.bat", |
| 292 | + "{{user `scripts_dir`}}/chocolatey_installs/ruby.bat", |
271 | 293 | "{{user `scripts_dir`}}/installs/install_devkit.bat" |
272 | 294 | ] |
273 | 295 | }, |
|
0 commit comments