forked from snohio/win_choco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitchen.azure.yml
80 lines (72 loc) · 1.76 KB
/
kitchen.azure.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
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
---
driver:
name: azurerm
subscription_id: <%= ENV["AZURE_SUBSCRIPTION_ID"] %>
location: 'East US'
machine_size: 'Standard_D2s_v3'
azure_resource_group_prefix: 'GA-WIN_CHOCO-'
resource_group_tags:
X-TTL: '2'
provisioner:
name: chef_infra
always_update_cookbooks: true
product_name: chef
product_version: 18
channel: stable
max_retries: 3
wait_for_retry: 90
retry_on_exit_code: [35, 213]
verifier:
name: inspec
platforms:
- name: Windows2019
os_type: windows
transport:
name: winrm
elevated: true
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2019-Datacenter:latest
- name: Windows2022
os_type: windows
transport:
name: winrm
elevated: true
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edition:latest
- name: Windows-10
os_type: windows
transport:
name: winrm
elevated: true
driver:
image_urn: MicrosoftWindowsDesktop:Windows-10:win10-22h2-ent:latest
winrm_powershell_script: |-
winrm quickconfig -q
Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress Any -Enabled True
- name: Windows-11
os_type: windows
transport:
name: winrm
elevated: true
driver:
image_urn: MicrosoftWindowsDesktop:windows-11:win11-22h2-ent:latest
winrm_powershell_script: |-
winrm quickconfig -q
Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress Any -Enabled True
suites:
- name: default
run_list:
- recipe[win_choco::default]
verifier:
inspec_tests:
- compliance/profiles/win_apps
attributes:
audit:
reporter: 'cli'
compliance_phase: true
# software:
# adobereader: true
# vscode: true
# tags:
# - chef_developer
# - choco_openjdk