-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
kitchen.yml
78 lines (71 loc) · 2.08 KB
/
kitchen.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
---
driver:
name: vagrant
customize:
cpus: 2
memory: 4096
provisioner:
name: chef_zero
deprecations_as_errors: true
chef_license: accept-no-persist
product_name: chef
product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
install_strategy: once
retry_on_exit_code:
- 0
- 1 # Exit, success: You still must reboot, this just notes that the automatic restart flag was removed
- 2 # Exit, success, need to reboot
- 3 # Exit, success, with a non-critical failure: Typically seen when returning the DNS Delegation warning.
- 4 # Exit, success, with a non-critical failure, need to reboot: Typically seen when returning the DNS Delegation warning.
- 35 # 35 is the exit code signaling that the node is rebooting
- 1190 #1190 is the exit code signaling that a reboot is scheduled
wait_for_retry: 200 # May need to increase depending on computing resources.
max_retries: 1
verifier:
name: inspec
transport:
connection_retry_sleep: 120 # Prevent Winrm from failing out when DC is created.
winrm_transport: plaintext # When set to plaintext the winrm will run in one converge
platforms:
- name: windows-2012-r2
driver:
box: tas50/windows_2012r2
customize:
memory: 2048
- name: windows-2016
driver:
box: tas50/windows_2016
customize:
memory: 2048
- name: windows-2019
driver:
box: tas50/windows_2019
customize:
memory: 2048
suites:
- name: default
run_list:
- recipe[windows_ad::default]
verifier:
inspec_tests:
- test/integration/default
attributes:
- name: forest
run_list:
- recipe[windows_ad_test::setup_forest]
verifier:
inspec_tests:
- test/integration/forest
attributes:
- name: objects
run_list:
- recipe[windows_ad_test::setup_forest]
- recipe[windows_ad_test::ou]
- recipe[windows_ad_test::group]
- recipe[windows_ad_test::user]
verifier:
inspec_tests:
- test/integration/default
- test/integration/forest
- test/integration/objects
attributes: