Skip to content

Commit 8d63ab5

Browse files
committed
WIP
1 parent ea2af9d commit 8d63ab5

File tree

2 files changed

+65
-169
lines changed

2 files changed

+65
-169
lines changed

Diff for: .travis.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,22 @@ services:
1212
- docker
1313

1414
before_install:
15-
- gem install bundler
1615
- bundle install
1716

1817
# Make sure the instances listed below match up with
1918
# the `platforms` defined in `kitchen.yml`
2019
env:
2120
matrix:
22-
- INSTANCE: v2019-2-py3-debian-9
23-
- INSTANCE: v2019-2-py3-ubuntu-1804
24-
- INSTANCE: v2019-2-py2-centos-7
25-
- INSTANCE: v2019-2-py2-fedora-29
26-
27-
- INSTANCE: v2018-3-py2-debian-8
28-
- INSTANCE: v2018-3-py2-ubuntu-1604
29-
- INSTANCE: v2018-3-py2-bootstrap-centos-6
30-
- INSTANCE: v2018-3-py2-forced-version-fedora-28
31-
- INSTANCE: v2018-3-py2-opensuse-423
32-
33-
- INSTANCE: v2017-7-py2-debian-8
34-
- INSTANCE: v2017-7-py2-ubuntu-1604
35-
- INSTANCE: v2017-7-py2-bootstrap-centos-6
21+
- INSTANCE: default-debian-9-2019-2-py3
22+
- INSTANCE: default-ubuntu-1804-2019-2-py3
23+
- INSTANCE: default-centos-7-2019-2-py2
24+
- INSTANCE: default-fedora-29-2019-2-py2
25+
- INSTANCE: default-opensuse-423-2018-3-py2
26+
- INSTANCE: default-debian-8-2018-3-py2
27+
- INSTANCE: default-ubuntu-1604-2018-3-py2
28+
- INSTANCE: default-fedora-28-2018-3-py2
29+
- INSTANCE: default-debian-8-2017-7-py2
30+
- INSTANCE: default-ubuntu-1604-2017-7-py2
3631

3732
script:
3833
- bundle exec kitchen verify ${INSTANCE}

Diff for: kitchen.yml

+55-154
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,78 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
13
---
4+
# For help on this file's format, see https://kitchen.ci/
25
driver:
36
name: docker
47
use_sudo: false
58
privileged: true
6-
provision_command: mkdir -p /run/sshd
79
run_command: /lib/systemd/systemd
810

11+
# Make sure the platforms listed below match up with
12+
# the `env.matrix` instances defined in `.travis.yml`
913
platforms:
10-
# Latest distros
11-
- name: debian-9
12-
- name: ubuntu-18.04
13-
- name: centos-7
14-
- name: fedora-29
15-
- name: opensuse-42.3
14+
## SALT 2019.2
15+
- name: debian-9-2019-2-py3
1616
driver:
17+
image: netmanagers/salt-2019.2-py3:debian-9
18+
- name: ubuntu-1804-2019-2-py3
19+
driver:
20+
image: netmanagers/salt-2019.2-py3:ubuntu-1804
21+
- name: centos-7-2019-2-py2
22+
driver:
23+
image: netmanagers/salt-2019.2-py2:centos-7
24+
- name: fedora-29-2019-2-py2
25+
driver:
26+
image: netmanagers/salt-2019.2-py2:fedora-29
27+
28+
## SALT 2018.3
29+
- name: opensuse-423-2018-3-py2
30+
driver:
31+
image: netmanagers/salt-2018.3-py2:opensuse-423
1732
run_command: /usr/lib/systemd/systemd
18-
provision_command:
19-
- systemctl enable sshd.service
33+
- name: debian-8-2018-3-py2
34+
driver:
35+
image: netmanagers/salt-2018.3-py2:debian-8
36+
- name: ubuntu-1604-2018-3-py2
37+
driver:
38+
image: netmanagers/salt-2018.3-py2:ubuntu-1604
39+
- name: fedora-28-2018-3-py2
40+
driver:
41+
image: netmanagers/salt-2018.3-py2:fedora-28
2042

21-
# Previous distros
22-
- name: debian-8
23-
- name: ubuntu-16.04
24-
- name: fedora-28
2543
# centos-6 guest fails on Debian hosts due to vsyscall issues, see
2644
# https://hub.docker.com/_/centos, "A note about vsyscall"
27-
- name: centos-6
45+
# Disabled for `template-formula` because not `systemd` based
46+
# - name: centos-6-2018-3
47+
# driver:
48+
# image: netmanagers/salt-2018.3-py2:centos-6
49+
# run_command: /sbin/init
50+
51+
##S SALT 2017.7
52+
- name: debian-8-2017-7-py2
53+
driver:
54+
image: netmanagers/salt-2017.7-py2:debian-8
55+
- name: ubuntu-1604-2017-7-py2
2856
driver:
29-
run_command: /sbin/init
57+
image: netmanagers/salt-2017.7-py2:ubuntu-1604
58+
# - name: centos-6-2017-7
59+
# driver:
60+
# image: netmanagers/salt-2017.7-py2:centos-6
61+
# run_command: /sbin/init
3062

3163
provisioner:
3264
name: salt_solo
3365
log_level: info
34-
salt_version: latest
66+
salt_install: none
3567
require_chef: false
3668
formula: nginx
3769
salt_copy_filter:
3870
- .kitchen
3971
- .git
4072
state_top:
4173
base:
42-
'*':
43-
- nginx.ng
74+
'*':
75+
- nginx.ng
4476
pillars:
4577
top.sls:
4678
base:
@@ -50,145 +82,14 @@ provisioner:
5082
nginx.sls: test/salt/default/pillar/nginx.sls
5183

5284
verifier:
85+
# https://www.inspec.io/
5386
name: inspec
5487
sudo: true
88+
# cli, documentation, html, progress, json, json-min, json-rspec, junit
5589
reporter:
5690
- cli
91+
inspec_tests:
92+
- path: test/integration/default
5793

5894
suites:
59-
# Latest distros, latest salt, python3
60-
# These distros have py3 packages available in salt's repo
61-
- name: v2019-2-py3
62-
includes:
63-
- debian-9
64-
- ubuntu-18.04
65-
provisioner:
66-
salt_bootstrap_options: -X -x python3 -d git %s
67-
salt_version: '2019.2'
68-
pillars:
69-
salt.sls:
70-
salt:
71-
release: '2019.2'
72-
py_ver: 'py3'
73-
74-
verifier:
75-
inspec_tests:
76-
#- path: test/integration/2019-2
77-
- path: test/integration/default
78-
79-
# Latest distros, latest salt, python2
80-
# Fedora ships updated py2 versions in their own repos
81-
- name: v2019-2-py2
82-
includes:
83-
- centos-7
84-
- fedora-29
85-
provisioner:
86-
salt_version: '2019.2'
87-
pillars:
88-
salt.sls:
89-
salt:
90-
release: '2019.2'
91-
py_ver: 'py2'
92-
93-
verifier:
94-
inspec_tests:
95-
#- path: test/integration/2019-2
96-
- path: test/integration/default
97-
98-
# Previous distros, previous salt, python2
99-
- name: v2018-3-py2
100-
includes:
101-
- debian-8
102-
- ubuntu-16.04
103-
- opensuse-42.3
104-
provisioner:
105-
# We require an old version of salt in the provisioner or,
106-
# the salt formula fails to downgrade to the desired version to test
107-
salt_version: '2018.3'
108-
pillars:
109-
salt.sls:
110-
salt:
111-
release: '2018.3'
112-
py_ver: 'py2'
113-
verifier:
114-
inspec_tests:
115-
#- path: test/integration/2018-3
116-
- path: test/integration/default
117-
118-
# centos-6 ships with python2.6, so it requires extra bootstrapping parameters
119-
# to install python2.7
120-
- name: v2018-3-py2-bootstrap
121-
includes:
122-
- centos-6
123-
provisioner:
124-
salt_bootstrap_options: -X -d stable %s
125-
salt_version: '2018.3'
126-
pillars:
127-
salt.sls:
128-
salt:
129-
release: '2018.3'
130-
py_ver: 'py2'
131-
verifier:
132-
inspec_tests:
133-
#- path: test/integration/2018-3
134-
- path: test/integration/default
135-
136-
# To tests fedora 28 & salt v2018.2, we need to force the package version
137-
# otherwise the image, which includes the 'updates' repo, will install 2019.2
138-
- name: v2018-3-py2-forced-version
139-
includes:
140-
- fedora-28
141-
provisioner:
142-
# We require an old version of salt in the provisioner or,
143-
# the salt formula fails to downgrade to the desired version to test
144-
salt_version: '2018.3'
145-
pillars:
146-
salt.sls:
147-
salt:
148-
release: '2018.3'
149-
py_ver: 'py2'
150-
version: '2018.3.0-1.fc28'
151-
152-
verifier:
153-
inspec_tests:
154-
#- path: test/integration/2018-3
155-
- path: test/integration/default
156-
157-
# Previous distros, oldest salt, python2
158-
- name: v2017-7-py2
159-
includes:
160-
- debian-8
161-
- ubuntu-16.04
162-
provisioner:
163-
# We require an old version of salt in the provisioner or,
164-
# the salt formula fails to downgrade to the desired version to test
165-
salt_version: '2017.7'
166-
pillars:
167-
salt.sls:
168-
salt:
169-
release: '2017.7'
170-
py_ver: 'py2'
171-
verifier:
172-
inspec_tests:
173-
#- path: test/integration/2017-7
174-
- path: test/integration/default
175-
176-
# centos-6 ships with python2.6, so it requires extra bootstrapping parameters
177-
# to install python2.7
178-
- name: v2017-7-py2-bootstrap
179-
includes:
180-
- centos-6
181-
provisioner:
182-
# As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
183-
salt_bootstrap_options: -X -d stable %s
184-
salt_version: '2017.7'
185-
pillars:
186-
salt.sls:
187-
salt:
188-
release: '2017.7'
189-
py_ver: 'py2'
190-
verifier:
191-
inspec_tests:
192-
#- path: test/integration/2017-7
193-
- path: test/integration/default
194-
95+
- name: default

0 commit comments

Comments
 (0)