Skip to content

Commit aa96c78

Browse files
authored
Merge pull request #285 from myii/chore/standardise-structure
ci(kitchen+travis): replace EOL pre-salted images
2 parents 766596e + 140928b commit aa96c78

File tree

4 files changed

+42
-25
lines changed

4 files changed

+42
-25
lines changed

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,30 @@ services:
1919
# the `platforms` defined in `kitchen.yml`
2020
env:
2121
matrix:
22-
- INSTANCE: default-debian-9-develop-py3
23-
# TODO: Re-enable this once the `systemd` service can be restarted reliably
22+
- INSTANCE: default-debian-10-develop-py3
2423
# - INSTANCE: default-ubuntu-1804-develop-py3
2524
# - INSTANCE: default-centos-7-develop-py3
26-
# - INSTANCE: default-fedora-29-develop-py3
25+
# - INSTANCE: default-fedora-30-develop-py3
2726
# - INSTANCE: default-opensuse-leap-15-develop-py3
27+
# - INSTANCE: default-amazonlinux-2-develop-py2
2828
# - INSTANCE: default-debian-9-2019-2-py3
29-
# TODO: Re-enable this once the `systemd` service can be restarted reliably
3029
# - INSTANCE: default-ubuntu-1804-2019-2-py3
3130
- INSTANCE: default-centos-7-2019-2-py3
32-
- INSTANCE: default-fedora-29-2019-2-py3
31+
- INSTANCE: default-fedora-30-2019-2-py3
3332
# - INSTANCE: default-opensuse-leap-15-2019-2-py3
33+
# - INSTANCE: default-amazonlinux-2-2019-2-py2
3434
# - INSTANCE: default-debian-9-2018-3-py2
3535
- INSTANCE: default-ubuntu-1604-2018-3-py2
3636
# - INSTANCE: default-centos-7-2018-3-py2
3737
# - INSTANCE: default-fedora-29-2018-3-py2
38-
- INSTANCE: default-opensuse-leap-42-2018-3-py2
38+
- INSTANCE: default-opensuse-leap-15-2018-3-py2
39+
# - INSTANCE: default-amazonlinux-2-2018-3-py2
3940
# - INSTANCE: default-debian-8-2017-7-py2
4041
# - INSTANCE: default-ubuntu-1604-2017-7-py2
4142
- INSTANCE: default-centos-6-2017-7-py2
42-
# - INSTANCE: default-fedora-28-2017-7-py2
43-
# - INSTANCE: default-opensuse-leap-42-2017-7-py2
43+
# - INSTANCE: default-fedora-29-2017-7-py2
44+
# - INSTANCE: default-opensuse-leap-15-2017-7-py2
45+
# - INSTANCE: default-amazonlinux-2-2017-7-py2
4446

4547
script:
4648
- bin/kitchen verify ${INSTANCE}

kitchen.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ driver:
1212
# the `env.matrix` instances defined in `.travis.yml`
1313
platforms:
1414
## SALT `develop`
15-
- name: debian-9-develop-py3
15+
- name: debian-10-develop-py3
1616
driver:
17-
image: netmanagers/salt-develop-py3:debian-9
17+
image: netmanagers/salt-develop-py3:debian-10
1818
provision_command:
1919
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
2020
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
@@ -30,9 +30,9 @@ platforms:
3030
provision_command:
3131
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
3232
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
33-
- name: fedora-29-develop-py3
33+
- name: fedora-30-develop-py3
3434
driver:
35-
image: netmanagers/salt-develop-py3:fedora-29
35+
image: netmanagers/salt-develop-py3:fedora-30
3636
provision_command:
3737
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
3838
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
@@ -43,6 +43,12 @@ platforms:
4343
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
4444
- sh bootstrap-salt.sh -XdPbfrq -x python3 git develop
4545
run_command: /usr/lib/systemd/systemd
46+
- name: amazonlinux-2-develop-py2
47+
driver:
48+
image: netmanagers/salt-develop-py2:amazonlinux-2
49+
provision_command:
50+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
51+
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
4652

4753
## SALT `2019.2`
4854
- name: debian-9-2019-2-py3
@@ -54,13 +60,16 @@ platforms:
5460
- name: centos-7-2019-2-py3
5561
driver:
5662
image: netmanagers/salt-2019.2-py3:centos-7
57-
- name: fedora-29-2019-2-py3
63+
- name: fedora-30-2019-2-py3
5864
driver:
59-
image: netmanagers/salt-2019.2-py3:fedora-29
65+
image: netmanagers/salt-2019.2-py3:fedora-30
6066
- name: opensuse-leap-15-2019-2-py3
6167
driver:
6268
image: netmanagers/salt-2019.2-py3:opensuse-leap-15
6369
run_command: /usr/lib/systemd/systemd
70+
- name: amazonlinux-2-2019-2-py2
71+
driver:
72+
image: netmanagers/salt-2019.2-py2:amazonlinux-2
6473

6574
## SALT `2018.3`
6675
- name: debian-9-2018-3-py2
@@ -75,10 +84,13 @@ platforms:
7584
- name: fedora-29-2018-3-py2
7685
driver:
7786
image: netmanagers/salt-2018.3-py2:fedora-29
78-
- name: opensuse-leap-42-2018-3-py2
87+
- name: opensuse-leap-15-2018-3-py2
7988
driver:
80-
image: netmanagers/salt-2018.3-py2:opensuse-leap-42
89+
image: netmanagers/salt-2018.3-py2:opensuse-leap-15
8190
run_command: /usr/lib/systemd/systemd
91+
- name: amazonlinux-2-2018-3-py2
92+
driver:
93+
image: netmanagers/salt-2018.3-py2:amazonlinux-2
8294

8395
## SALT `2017.7`
8496
- name: debian-8-2017-7-py2
@@ -91,13 +103,16 @@ platforms:
91103
driver:
92104
image: netmanagers/salt-2017.7-py2:centos-6
93105
run_command: /sbin/init
94-
- name: fedora-28-2017-7-py2
106+
- name: fedora-29-2017-7-py2
95107
driver:
96-
image: netmanagers/salt-2017.7-py2:fedora-28
97-
- name: opensuse-leap-42-2017-7-py2
108+
image: netmanagers/salt-2017.7-py2:fedora-29
109+
- name: opensuse-leap-15-2017-7-py2
98110
driver:
99-
image: netmanagers/salt-2017.7-py2:opensuse-leap-42
111+
image: netmanagers/salt-2017.7-py2:opensuse-leap-15
100112
run_command: /usr/lib/systemd/systemd
113+
- name: amazonlinux-2-2017-7-py2
114+
driver:
115+
image: netmanagers/salt-2017.7-py2:amazonlinux-2
101116

102117
provisioner:
103118
name: salt_solo

test/integration/default/controls/command_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Overide by OS
1+
# Overide by Platform
22
pg_port = '5432'
3-
if os[:family] == 'debian' or os[:name] == 'suse'
3+
if platform[:family] == 'debian' or platform[:family] == 'suse'
44
pg_port = '5433'
55
end
66

test/integration/default/controls/services_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Overide by OS
1+
# Overide by Platform
22
service_name = 'postgresql'
33
pg_port = 5432
4-
if os[:name] == 'centos' and os[:release].start_with?('6')
4+
if platform[:name] == 'centos' and platform[:release].start_with?('6')
55
service_name = 'postgresql-9.6'
6-
elsif os[:family] == 'debian' or os[:name] == 'suse'
6+
elsif platform[:family] == 'debian' or platform[:family] == 'suse'
77
pg_port = 5433
88
end
99

0 commit comments

Comments
 (0)