This repository has been archived by the owner on May 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kitchen.yml
215 lines (203 loc) · 5.54 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
# For help on this file's format, see https://kitchen.ci/
driver:
name: docker
use_sudo: false
privileged: true
run_command: /lib/systemd/systemd
provision_command: mkdir -p /run/sshd
# Make sure the platforms listed below match up with
# the `env.matrix` instances defined in `.travis.yml`
platforms:
# Latest distros
- name: debian-9
driver:
provision_command:
- apt-get update && apt-get install -y udev
- name: ubuntu-18.04
driver:
provision_command:
- apt-get update && apt-get install -y udev
- name: centos-7
- name: fedora-29
driver:
provision_command:
- yum -y update && yum -y install udev
- name: opensuse-42.3
driver:
provision_command:
- zypper refresh && zypper install -y udev
- systemctl enable sshd.service
run_command: /usr/lib/systemd/systemd
# Previous distros
- name: debian-8
- name: ubuntu-16.04
driver:
provision_command:
- apt-get update && apt-get install -y udev
- name: fedora-28
driver:
provision_command:
- yum -y update && yum -y install udev
# centos-6 guest fails on Debian hosts due to vsyscall issues, see
# https://hub.docker.com/_/centos, "A note about vsyscall"
# Disabled for `shibboleth-formula` because not `systemd` based
# - name: centos-6
# driver:
# run_command: /sbin/init
provisioner:
name: salt_solo
log_level: info
salt_version: latest
require_chef: false
formula: shibboleth
salt_copy_filter:
- .kitchen
- .git
state_top:
base:
'*':
- shibboleth.repo
- shibboleth.idp
- shibboleth.mda
- shibboleth.sp
- shibboleth.ds
- xmlsectool
pillars:
top.sls:
base:
'*':
- shibboleth
pillars_from_files:
shibboleth.sls: pillar.example
verifier:
# https://www.inspec.io/
name: inspec
sudo: true
# cli, documentation, html, progress, json, json-min, json-rspec, junit
reporter:
- cli
inspec_tests:
- path: test/integration/default
suites:
# Latest distros, latest salt, python3
# These distros have py3 packages available in salt's repo
- name: v2019-2-py3
includes:
- debian-9
- ubuntu-18.04
provisioner:
salt_bootstrap_options: -X -x python3 -d git %s
salt_version: '2019.2'
pillars:
salt.sls:
salt:
release: '2019.2'
py_ver: 'py3'
# verifier:
# inspec_tests:
# - path: test/integration/2019-2
# Latest distros, latest salt, python2
# Fedora ships updated py2 versions in their own repos
- name: v2019-2-py2
includes:
- centos-7
- fedora-29
provisioner:
salt_version: '2019.2'
pillars:
salt.sls:
salt:
release: '2019.2'
py_ver: 'py2'
# verifier:
# inspec_tests:
# - path: test/integration/2019-2
# Previous distros, previous salt, python2
- name: v2018-3-py2
includes:
- debian-8
- ubuntu-16.04
- opensuse-42.3
provisioner:
# We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test
salt_version: '2018.3'
pillars:
salt.sls:
salt:
release: '2018.3'
py_ver: 'py2'
# verifier:
# inspec_tests:
# - path: test/integration/2018-3
# # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
# # to install python2.7
# - name: v2018-3-py2-bootstrap
# includes:
# - centos-6
# provisioner:
# salt_bootstrap_options: -X -d stable %s
# salt_version: '2018.3'
# pillars:
# salt.sls:
# salt:
# release: '2018.3'
# py_ver: 'py2'
# # verifier:
# # inspec_tests:
# # - path: test/integration/2018-3
# To tests fedora 28 & salt v2018.2, we need to force the package version
# otherwise the image, which includes the 'updates' repo, will install 2019.2
- name: v2018-3-py2-forced-version
includes:
- fedora-28
provisioner:
# We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test
salt_version: '2018.3'
pillars:
salt.sls:
salt:
release: '2018.3'
py_ver: 'py2'
version: '2018.3.0-1.fc28'
# verifier:
# inspec_tests:
# - path: test/integration/2018-3
# Previous distros, oldest salt, python2
- name: v2017-7-py2
includes:
- debian-8
- ubuntu-16.04
provisioner:
# We require an old version of salt in the provisioner or,
# the salt formula fails to downgrade to the desired version to test
salt_version: '2017.7'
pillars:
salt.sls:
salt:
release: '2017.7'
py_ver: 'py2'
# verifier:
# inspec_tests:
# - path: test/integration/2017-7
# # centos-6 ships with python2.6, so it requires extra bootstrapping parameters
# # to install python2.7
# - name: v2017-7-py2-bootstrap
# includes:
# - centos-6
# provisioner:
# # As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
# salt_bootstrap_options: -X -d stable %s
# salt_version: '2017.7'
# pillars:
# salt.sls:
# salt:
# release: '2017.7'
# py_ver: 'py2'
# # verifier:
# # inspec_tests:
# # - path: test/integration/2017-7