forked from chef-boneyard/windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.cloud.yml
41 lines (39 loc) · 1.75 KB
/
.kitchen.cloud.yml
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
---
driver:
name: azurerm
subscription_id: <%= ENV['AZURE_SUBSCRIPTION_ID'] %>
location: 'Central US'
machine_size: 'Basic_A2'
provisioner:
name: chef_zero_scheduled_task
require_chef_omnibus: 12
platforms:
- name: windows-2008r2-chef11.18.6
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2008-R2-SP1:latest
winrm_powershell_script: |-
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="512"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any
- name: windows-2008r2
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2008-R2-SP1:latest
winrm_powershell_script: |-
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="512"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any
- name: windows-2012
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2012-Datacenter:latest
- name: windows-2012r2
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:latest
- name: windows-2016-tp
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:Windows-Server-Technical-Preview:latest