generated from saltstack-formulas/template-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
executable file
·165 lines (153 loc) · 4.2 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# -*- coding: utf-8 -*-
# vim: ft=yaml
# c:\salt\salt-call.bat --state-output=changes --config-dir=C:\Users\vagrant\AppData\Local\Temp\kitchen\etc\salt
# state.highstate --retcode-passthrough
# kitchen exec py3-windows-10-1903 -c "rm -Path C:\\Users\\vagrant\\AppData\\Local\\Temp\\kitchen -Force -Recurse"
# http://apealive.net/post/salt-formula-testing-kitchen-salt-1/
---
driver:
name: vagrant
log_level: info
communicator: winrm
linked_clone: true
provider: virtualbox
customize:
memory: 3072
cpus: 2
# provider: hyperv
# network:
# - ['private_network', bridge: 'Default Switch']
gui: false
vagrantfiles:
# stop virtualbox guest additions update
- test/vagrant_vb_guest.rb
synced_folders:
- ["/mnt/c/tmp/results", "/results"]
provisioner:
name: salt_solo
log_level: warning
max_retries: 4
wait_for_retry: 30
retry_on_exit_code: [35, 213, 995, 500, 1]
salt_install: bootstrap
dry_run: false
install_after_init_environment: false
is_file_root: false
require_chef: false
formula: windows
pillars-from-files:
windows.sls: pillar.example
pillars:
top.sls:
base:
"*":
- windows
# pillars_from_directories:
# - source: test/salt/pillar/
# dest: srv/pillar/
salt_file_root: /srv/salt
state_top:
base:
"*":
- windows
salt_copy_filter:
- .kitchen
- .git
- __pycache__
- "*.pyc"
- .bundle
- .tox
- .nox
- artifacts
- Gemfile.lock
salt_minion_extra_config:
use_superseded:
- module.run
log_file: c:\results\salt_minion_debug.log
log_level_logfile: debug
state_output: full
verifier:
name: inspec
log_level: info
color: false
# color: <%= !ENV.include?('CI') %>
windows: true
run_destructive: true
reporter:
- cli
- documentation:test/results/%{suite}-%{platform}.inspec.results.txt
- json:test/results/%{suite}-%{platform}.inspec.results.json
- junit:test/results/%{suite}-%{platform}.inspec.results.xml
inspec_tests:
- path: test/integration/default
# - supermarket://dev-sec/windows-baseline
transport:
name: winrm
log_level: warning
username: vagrant
password: vagrant
connection_retries: 20
connection_retry_sleep: 5
platforms:
# Windows 10, version 1909 (OS Build: 18363.657)
- name: windows-10-1909
driver:
box: StefanScherer/windows_10
box_version: 2020.02.12
# Windows 10, version 1903 (OS Build: 18362.592)
- name: windows-10-1903
driver:
box: StefanScherer/windows_10
box_version: 2020.01.15
# Windows 10, version 1809 (OS Build: 17763.503)
- name: windows-10-1809
driver:
box: StefanScherer/windows_10
box_version: 2019.05.15
# Windows 10, version 1803 (OS Build: 17134.285)
- name: windows-10-1803
driver:
box: StefanScherer/windows_10
box_version: 2018.09.12
# Windows 10, version 1709 (OS Build: 16299.309)
- name: windows-10-1709
driver:
box: StefanScherer/windows_10
box_version: 2018.03.14
# Windows Server 2019, version 1809 (OS Build: 17763.864)
- name: windows-server-2019-1809
driver:
box: StefanScherer/windows_2019
box_version: 2020.02.12
# box_version: 2020.01.15
# Windows Server 2016, version 1607 (OS Build: 14393.2791)
- name: windows-server-2016
driver:
box: StefanScherer/windows_2016
box_version: 2019.02.14
# # Windows Server 2012 R2 (OS Build: 9600)
# - name: windows-server-2012r2
# driver:
# box: mwrock/Windows2012R2
# box_version: 0.6.1
# # Windows 8.1 Enterprise
# - name: windows-8.1
# driver:
# box: mwrock/Windows8.1-amd64
# box_version: 0.1.0
# # Windows 7 Enterprise
# - name: windows-7
# driver:
# box: opentable/win-7-enterprise-amd64-nocm
# box_version: 1.0.0
suites:
- name: py3
provisioner:
salt_bootstrap_options: "-version 2019.2.3 -pythonVersion 3"
# salt_version: latest
# - name: py3-3000
# provisioner:
# salt_bootstrap_options: "-version 3000 -pythonVersion 3"
# - name: py2
# provisioner:
# salt_bootstrap_options: "-version 2019.2.3 -pythonVersion 2"