Skip to content

Commit a5ecc50

Browse files
authored
Merge pull request #43 from myii/chore/standardise-structure
ci(platform): add `arch-base-latest` & split suites across Travis instances
2 parents 31fe954 + 800d842 commit a5ecc50

File tree

10 files changed

+41
-11
lines changed

10 files changed

+41
-11
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,28 @@ env:
2525
# - INSTANCE: fedora-30-develop-py3
2626
# - INSTANCE: opensuse-leap-15-develop-py3
2727
# - INSTANCE: amazonlinux-2-develop-py2
28+
# - INSTANCE: arch-base-latest-develop-py2
2829
# - INSTANCE: debian-9-2019-2-py3
29-
- INSTANCE: ubuntu-1804-2019-2-py3
30+
- INSTANCE: prod-server-ubuntu-1804-2019-2-py3
3031
# - INSTANCE: centos-7-2019-2-py3
31-
# - INSTANCE: fedora-30-2019-2-py3
32+
- INSTANCE: prod-server-fedora-30-2019-2-py3
3233
# - INSTANCE: opensuse-leap-15-2019-2-py3
33-
- INSTANCE: amazonlinux-2-2019-2-py2
34+
- INSTANCE: prod-server-amazonlinux-2-2019-2-py2
35+
# - INSTANCE: arch-base-latest-2019-2-py2
3436
# - INSTANCE: debian-9-2018-3-py2
3537
# - INSTANCE: ubuntu-1604-2018-3-py2
36-
# - INSTANCE: centos-7-2018-3-py2
37-
- INSTANCE: fedora-29-2018-3-py2
38-
- INSTANCE: opensuse-leap-15-2018-3-py2
38+
- INSTANCE: prod-server-centos-7-2018-3-py2
39+
# - INSTANCE: fedora-29-2018-3-py2
40+
- INSTANCE: prod-server-opensuse-leap-15-2018-3-py2
3941
# - INSTANCE: amazonlinux-2-2018-3-py2
42+
# - INSTANCE: arch-base-latest-2018-3-py2
4043
# - INSTANCE: debian-8-2017-7-py2
4144
# - INSTANCE: ubuntu-1604-2017-7-py2
42-
- INSTANCE: centos-6-2017-7-py2
45+
# - INSTANCE: centos-6-2017-7-py2
4346
# - INSTANCE: fedora-29-2017-7-py2
4447
# - INSTANCE: opensuse-leap-15-2017-7-py2
4548
# - INSTANCE: amazonlinux-2-2017-7-py2
49+
- INSTANCE: prod-server-arch-base-latest-2017-7-py2
4650

4751
script:
4852
- bin/kitchen verify ${INSTANCE}

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ source "https://rubygems.org"
33
gem 'kitchen-docker', '>= 2.9'
44
gem 'kitchen-salt', '>= 0.6.0'
55
gem 'kitchen-inspec', '>= 1.1'
6+
gem 'inspec', '~> 4.16.0'
67

kitchen.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ platforms:
6262
provision_command:
6363
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
6464
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
65+
- name: arch-base-latest-develop-py2
66+
driver:
67+
image: netmanagers/salt-develop-py2:arch-base-latest
68+
provision_command:
69+
- curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
70+
- sh bootstrap-salt.sh -XdPbfrq -x python2 git develop
71+
run_command: /usr/lib/systemd/systemd
6572

6673
## SALT `2019.2`
6774
- name: debian-9-2019-2-py3
@@ -87,6 +94,10 @@ platforms:
8794
- name: amazonlinux-2-2019-2-py2
8895
driver:
8996
image: netmanagers/salt-2019.2-py2:amazonlinux-2
97+
- name: arch-base-latest-2019-2-py2
98+
driver:
99+
image: netmanagers/salt-2019.2-py2:arch-base-latest
100+
run_command: /usr/lib/systemd/systemd
90101

91102
## SALT `2018.3`
92103
- name: debian-9-2018-3-py2
@@ -112,6 +123,10 @@ platforms:
112123
- name: amazonlinux-2-2018-3-py2
113124
driver:
114125
image: netmanagers/salt-2018.3-py2:amazonlinux-2
126+
- name: arch-base-latest-2018-3-py2
127+
driver:
128+
image: netmanagers/salt-2018.3-py2:arch-base-latest
129+
run_command: /usr/lib/systemd/systemd
115130

116131
## SALT `2017.7`
117132
- name: debian-8-2017-7-py2
@@ -138,6 +153,10 @@ platforms:
138153
- name: amazonlinux-2-2017-7-py2
139154
driver:
140155
image: netmanagers/salt-2017.7-py2:amazonlinux-2
156+
- name: arch-base-latest-2017-7-py2
157+
driver:
158+
image: netmanagers/salt-2017.7-py2:arch-base-latest
159+
run_command: /usr/lib/systemd/systemd
141160

142161
provisioner:
143162
name: salt_solo

test/integration/dev_server/vault_spec.rb renamed to test/integration/dev_server/controls/vault_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
describe.one do
88
describe file('/etc/systemd/system/vault.service') do
99
it { should be_a_file }
10-
its(:content) { should_not match /syslog/ }
10+
its(:content) { should_not match(/syslog/) }
1111
end
1212

1313
describe file('/etc/init/vault.conf') do
@@ -28,7 +28,7 @@
2828
describe command('journalctl -u vault') do
2929
its(:exit_status) { should eq 0 }
3030
its(:stderr) { should be_empty }
31-
its(:stdout) { should match /WARNING! dev mode is enabled!/ }
31+
its(:stdout) { should match(/WARNING! dev mode is enabled!/) }
3232
end
3333

3434
describe file('/var/log/vault.log') do

test/integration/dev_server/inspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ supports:
1515
- platform-name: suse
1616
- platform-name: freebsd
1717
- platform-name: amazon
18+
- platform-name: arch

test/integration/install_binary/inspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ supports:
1515
- platform-name: suse
1616
- platform-name: freebsd
1717
- platform-name: amazon
18+
- platform-name: arch

test/integration/prod_server/vault_spec.rb renamed to test/integration/prod_server/controls/vault_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
describe.one do
2626
describe file('/etc/systemd/system/vault.service') do
2727
it { should be_a_file }
28-
its(:content) { should_not match /syslog/ }
28+
its(:content) { should_not match(/syslog/) }
2929
end
3030

3131
describe file('/etc/init/vault.conf') do
@@ -42,7 +42,7 @@
4242
describe command('journalctl -u vault') do
4343
its(:exit_status) { should eq 0 }
4444
its(:stderr) { should be_empty }
45-
its(:stdout) { should match /Vault server started/ }
45+
its(:stdout) { should match(/Vault server started/) }
4646
end
4747

4848
describe file('/var/log/vault.log') do

test/integration/prod_server/inspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ supports:
1515
- platform-name: suse
1616
- platform-name: freebsd
1717
- platform-name: amazon
18+
- platform-name: arch

vault/osfamilymap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ Suse:
88
gpg_pkg: gpg2
99
setcap_pkg: libcap-progs
1010

11+
Arch:
12+
gpg_pkg: gnupg
13+
1114
MacOS:
1215
platform: darwin_amd64

0 commit comments

Comments
 (0)