Skip to content

Commit b47b992

Browse files
committed
ci(kitchen+travis): modify matrix to include develop platform
* Use balanced matrix based on `template-formula` guidelines * Initial ref: saltstack-formulas/template-formula#118
1 parent 55d2a8e commit b47b992

File tree

2 files changed

+122
-38
lines changed

2 files changed

+122
-38
lines changed

.cirrus.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,29 @@ docker_builder:
22
name: Test $INSTANCE
33
env:
44
matrix:
5-
- INSTANCE: debian-9
6-
- INSTANCE: debian-8
7-
- INSTANCE: ubuntu-1804
8-
- INSTANCE: ubuntu-1604
5+
- INSTANCE: default-debian-9-develop-py3
6+
- INSTANCE: default-ubuntu-1804-develop-py3
7+
# - INSTANCE: default-centos-7-develop-py3
8+
# - INSTANCE: default-fedora-29-develop-py3
9+
# - INSTANCE: default-opensuse-leap-15-develop-py3
10+
- INSTANCE: default-debian-9-2019-2-py3
11+
- INSTANCE: default-ubuntu-1804-2019-2-py3
12+
# - INSTANCE: default-centos-7-2019-2-py3
13+
# - INSTANCE: default-fedora-29-2019-2-py3
14+
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
15+
- INSTANCE: default-debian-9-2018-3-py2
16+
# - INSTANCE: default-ubuntu-1604-2018-3-py2
17+
# - INSTANCE: default-centos-7-2018-3-py2
18+
# - INSTANCE: default-fedora-29-2018-3-py2
19+
# TODO: Use this when fixed instead of `opensuse-leap-42`
20+
# Ref: https://github.com/netmanagers/salt-image-builder/issues/2
21+
# - INSTANCE: default-opensuse-leap-15-2018-3-py2
22+
# - INSTANCE: default-opensuse-leap-42-2018-3-py2
23+
# - INSTANCE: default-debian-8-2017-7-py2
24+
# - INSTANCE: default-ubuntu-1604-2017-7-py2
25+
# TODO: Enable after improving the formula to work with other than `systemd`
26+
# - INSTANCE: default-centos-6-2017-7-py2
27+
# - INSTANCE: default-fedora-28-2017-7-py2
28+
# - INSTANCE: default-opensuse-leap-42-2017-7-py2
929
bundle_install_script: bundle install
1030
verify_script: bundle exec kitchen verify $INSTANCE

kitchen.yml

+98-34
Original file line numberDiff line numberDiff line change
@@ -11,48 +11,105 @@ driver:
1111
# Make sure the platforms listed below match up with
1212
# the `env.matrix` instances defined in `.travis.yml`
1313
platforms:
14-
- name: debian-9
15-
driver_config:
16-
image: debian:9
14+
## SALT `develop`
15+
- name: debian-9-develop-py3
16+
driver:
17+
image: netmanagers/salt-develop-py3:debian-9
1718
provision_command:
18-
- apt-get update && apt-get install -y udev locales
19-
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
20-
- locale-gen en_US.UTF-8
21-
platform: debian
22-
23-
- name: debian-8
24-
driver_config:
25-
image: debian:8
19+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
20+
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
21+
- name: ubuntu-1804-develop-py3
22+
driver:
23+
image: netmanagers/salt-develop-py3:ubuntu-18.04
2624
provision_command:
27-
- apt-get update && apt-get install -y udev locales
28-
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
29-
- locale-gen en_US.UTF-8
30-
platform: debian
31-
32-
- name: ubuntu-18.04
33-
driver_config:
34-
image: ubuntu:18.04
25+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
26+
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
27+
- name: centos-7-develop-py3
28+
driver:
29+
image: netmanagers/salt-develop-py3:centos-7
3530
provision_command:
36-
- apt-get update && apt-get install -y udev locales && rm -rf /var/lib/apt/lists/*
37-
- localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
38-
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
39-
- locale-gen en_US.UTF-8
40-
platform: ubuntu
41-
42-
- name: ubuntu-16.04
43-
driver_config:
44-
image: ubuntu:16.04
31+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
32+
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
33+
- name: fedora-29-develop-py3
34+
driver:
35+
image: netmanagers/salt-develop-py3:fedora-29
36+
provision_command:
37+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
38+
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
39+
- name: opensuse-leap-15-develop-py3
40+
driver:
41+
image: netmanagers/salt-develop-py3:opensuse-leap-15
4542
provision_command:
46-
- apt-get update && apt-get install -y udev locales && rm -rf /var/lib/apt/lists/*
47-
- localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
48-
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
49-
- locale-gen en_US.UTF-8
50-
platform: ubuntu
43+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
44+
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
45+
run_command: /usr/lib/systemd/systemd
46+
47+
## SALT 2019.2
48+
- name: debian-9-2019-2-py3
49+
driver:
50+
image: netmanagers/salt-2019.2-py3:debian-9
51+
- name: ubuntu-1804-2019-2-py3
52+
driver:
53+
image: netmanagers/salt-2019.2-py3:ubuntu-18.04
54+
- name: centos-7-2019-2-py3
55+
driver:
56+
image: netmanagers/salt-2019.2-py3:centos-7
57+
- name: fedora-29-2019-2-py3
58+
driver:
59+
image: netmanagers/salt-2019.2-py3:fedora-29
60+
- name: opensuse-leap-15-2019-2-py3
61+
driver:
62+
image: netmanagers/salt-2019.2-py3:opensuse-leap-15
63+
run_command: /usr/lib/systemd/systemd
64+
65+
## SALT 2018.3
66+
- name: debian-9-2018-3-py2
67+
driver:
68+
image: netmanagers/salt-2018.3-py2:debian-9
69+
- name: ubuntu-1604-2018-3-py2
70+
driver:
71+
image: netmanagers/salt-2018.3-py2:ubuntu-16.04
72+
- name: centos-7-2018-3-py2
73+
driver:
74+
image: netmanagers/salt-2018.3-py2:centos-7
75+
- name: fedora-29-2018-3-py2
76+
driver:
77+
image: netmanagers/salt-2018.3-py2:fedora-29
78+
# TODO: Use this when fixed instead of `opensuse-leap-42`
79+
# Ref: https://github.com/netmanagers/salt-image-builder/issues/2
80+
# - name: opensuse-leap-15-2018-3-py2
81+
# driver:
82+
# image: netmanagers/salt-2018.3-py2:opensuse-leap-15
83+
# run_command: /usr/lib/systemd/systemd
84+
- name: opensuse-leap-42-2018-3-py2
85+
driver:
86+
image: netmanagers/salt-2018.3-py2:opensuse-leap-42
87+
run_command: /usr/lib/systemd/systemd
88+
89+
## SALT 2017.7
90+
- name: debian-8-2017-7-py2
91+
driver:
92+
image: netmanagers/salt-2017.7-py2:debian-8
93+
- name: ubuntu-1604-2017-7-py2
94+
driver:
95+
image: netmanagers/salt-2017.7-py2:ubuntu-16.04
96+
# TODO: Modify the formula to work for non-`systemd` platforms
97+
- name: centos-6-2017-7-py2
98+
driver:
99+
image: netmanagers/salt-2017.7-py2:centos-6
100+
run_command: /sbin/init
101+
- name: fedora-28-2017-7-py2
102+
driver:
103+
image: netmanagers/salt-2017.7-py2:fedora-28
104+
- name: opensuse-leap-42-2017-7-py2
105+
driver:
106+
image: netmanagers/salt-2017.7-py2:opensuse-leap-42
107+
run_command: /usr/lib/systemd/systemd
51108

52109
provisioner:
53110
name: salt_solo
54111
log_level: info
55-
salt_version: latest
112+
salt_install: none
56113
require_chef: false
57114
formula: syslog_ng
58115
salt_copy_filter:
@@ -62,6 +119,13 @@ provisioner:
62119
base:
63120
'*':
64121
- syslog_ng.config
122+
pillars:
123+
top.sls:
124+
base:
125+
'*':
126+
- syslog_ng
127+
pillars_from_files:
128+
syslog_ng.sls: pillar.example
65129

66130
verifier:
67131
# https://www.inspec.io/

0 commit comments

Comments
 (0)