forked from snohio/chef-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkitchen.azure.yml
117 lines (104 loc) · 2.61 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
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
---
driver:
name: azurerm
subscription_id: <%= ENV["AZURE_SUBSCRIPTION_ID"] %>
location: 'East US'
machine_size: 'Standard_D2s_v3'
azure_resource_group_prefix: 'GA-CHEF_CLIENT-'
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: ubuntu-18
driver:
image_urn: Canonical:UbuntuServer:18.04-LTS:latest
transport:
name: ssh
ssh_key: ~/.ssh/id_kitchen-azurerm
- name: ubuntu-20
driver:
image_urn: Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest
transport:
name: ssh
ssh_key: ~/.ssh/id_kitchen-azurerm
- name: ubuntu-22
driver:
image_urn: Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest
transport:
name: ssh
ssh_key: ~/.ssh/id_kitchen-azurerm
- name: RHEL7
driver:
image_urn: RedHat:RHEL:7-LVM:latest
transport:
name: ssh
ssh_key: ~/.ssh/id_kitchen-azurerm
- name: RHEL8
driver:
image_urn: RedHat:RHEL:8-LVM:latest
transport:
name: ssh
ssh_key: ~/.ssh/id_kitchen-azurerm
- name: Windows2019
os_type: windows
transport:
name: winrm
elevated: true
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2019-Datacenter:latest
# winrm_powershell_script: |-
# winrm quickconfig -q
# Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress Any -Enabled True
- 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[chef-client::default]
verifier:
inspec_tests:
- compliance/profiles/client-run/controls
attributes:
audit:
reporter: 'cli'
# chef:
# client:
# version: '18.2.7'
# domain: 'foobar.com'
tags:
# - final