Skip to content

Commit a741a47

Browse files
authored
Merge pull request #92 from myii/chore/use-salted-ci-images
ci(kitchen): use pre-salted images instead
2 parents a3ebe2b + 2855ed6 commit a741a47

File tree

2 files changed

+48
-167
lines changed

2 files changed

+48
-167
lines changed

.travis.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,16 @@ before_install:
1818
# the `platforms` defined in `kitchen.yml`
1919
env:
2020
matrix:
21-
- INSTANCE: v2019-2-py3-debian-9
22-
- INSTANCE: v2019-2-py3-ubuntu-1804
23-
- INSTANCE: v2019-2-py2-centos-7
24-
- INSTANCE: v2019-2-py2-fedora-29
25-
26-
- INSTANCE: v2018-3-py2-debian-8
27-
- INSTANCE: v2018-3-py2-ubuntu-1604
28-
# - INSTANCE: v2018-3-py2-bootstrap-centos-6
29-
- INSTANCE: v2018-3-py2-forced-version-fedora-28
30-
- INSTANCE: v2018-3-py2-opensuse-423
31-
32-
- INSTANCE: v2017-7-py2-debian-8
33-
- INSTANCE: v2017-7-py2-ubuntu-1604
34-
# - 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
3531

3632
script:
3733
- bundle exec kitchen verify ${INSTANCE}

kitchen.yml

Lines changed: 38 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,63 @@ driver:
77
use_sudo: false
88
privileged: true
99
run_command: /lib/systemd/systemd
10-
provision_command: mkdir -p /run/sshd
1110

1211
# Make sure the platforms listed below match up with
1312
# the `env.matrix` instances defined in `.travis.yml`
1413
platforms:
15-
# Latest distros
16-
- name: debian-9
14+
## SALT 2019.2
15+
- name: debian-9-2019-2-py3
1716
driver:
18-
provision_command:
19-
- apt-get update && apt-get install -y udev
20-
- name: ubuntu-18.04
17+
image: netmanagers/salt-2019.2-py3:debian-9
18+
- name: ubuntu-1804-2019-2-py3
2119
driver:
22-
provision_command:
23-
- apt-get update && apt-get install -y udev
24-
- name: centos-7
25-
- name: fedora-29
20+
image: netmanagers/salt-2019.2-py3:ubuntu-1804
21+
- name: centos-7-2019-2-py2
2622
driver:
27-
provision_command:
28-
- yum -y update && yum -y install udev
29-
- name: opensuse-42.3
23+
image: netmanagers/salt-2019.2-py2:centos-7
24+
- name: fedora-29-2019-2-py2
3025
driver:
31-
provision_command:
32-
- zypper refresh && zypper install -y udev
33-
- systemctl enable sshd.service
34-
run_command: /usr/lib/systemd/systemd
26+
image: netmanagers/salt-2019.2-py2:fedora-29
3527

36-
# Previous distros
37-
- name: debian-8
38-
- name: ubuntu-16.04
28+
## SALT 2018.3
29+
- name: opensuse-423-2018-3-py2
30+
driver:
31+
image: netmanagers/salt-2018.3-py2:opensuse-423
32+
run_command: /usr/lib/systemd/systemd
33+
- name: debian-8-2018-3-py2
3934
driver:
40-
provision_command:
41-
- apt-get update && apt-get install -y udev
42-
- name: fedora-28
35+
image: netmanagers/salt-2018.3-py2:debian-8
36+
- name: ubuntu-1604-2018-3-py2
4337
driver:
44-
provision_command:
45-
- yum -y update && yum -y install udev
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
42+
4643
# centos-6 guest fails on Debian hosts due to vsyscall issues, see
4744
# https://hub.docker.com/_/centos, "A note about vsyscall"
4845
# Disabled for `template-formula` because not `systemd` based
49-
# - name: centos-6
46+
# - name: centos-6-2018-3
5047
# 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
56+
driver:
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
5161
# run_command: /sbin/init
5262

5363
provisioner:
5464
name: salt_solo
5565
log_level: info
56-
salt_version: latest
66+
salt_install: none
5767
require_chef: false
5868
formula: template
5969
salt_copy_filter:
@@ -82,129 +92,4 @@ verifier:
8292
- path: test/integration/default
8393

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

0 commit comments

Comments
 (0)