2019-03-27 13:07:06 +01:00
|
|
|
---
|
|
|
|
driver:
|
|
|
|
name: docker
|
|
|
|
use_sudo: false
|
|
|
|
privileged: true
|
|
|
|
provision_command: mkdir -p /run/sshd
|
|
|
|
run_command: /lib/systemd/systemd
|
|
|
|
|
|
|
|
platforms:
|
|
|
|
# Latest distros
|
|
|
|
- name: debian-9
|
|
|
|
- name: ubuntu-18.04
|
|
|
|
- name: centos-7
|
|
|
|
- name: fedora-29
|
|
|
|
- name: opensuse-42.3
|
|
|
|
driver:
|
|
|
|
run_command: /usr/lib/systemd/systemd
|
|
|
|
provision_command:
|
|
|
|
- systemctl enable sshd.service
|
|
|
|
|
|
|
|
# Previous distros
|
|
|
|
- name: debian-8
|
|
|
|
- name: ubuntu-16.04
|
|
|
|
- name: fedora-28
|
|
|
|
# Fails on Debian due to vsyscall issues, see
|
|
|
|
# https://hub.docker.com/_/centos, "A note about vsyscall"
|
|
|
|
- name: centos-6
|
|
|
|
driver:
|
|
|
|
run_command: /sbin/init
|
|
|
|
|
|
|
|
provisioner:
|
|
|
|
name: salt_solo
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_bootstrap_options: -X -d git %s
|
2019-03-27 13:07:06 +01:00
|
|
|
log_level: info
|
|
|
|
require_chef: false
|
|
|
|
formula: salt
|
|
|
|
salt_copy_filter:
|
|
|
|
- .kitchen
|
|
|
|
- .git
|
|
|
|
state_top:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- salt.pkgrepo
|
|
|
|
- salt.master
|
|
|
|
- salt.minion
|
|
|
|
pillars:
|
|
|
|
top.sls:
|
|
|
|
base:
|
|
|
|
'*':
|
|
|
|
- salt
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
master:
|
|
|
|
fileserver_backend:
|
|
|
|
- rootfs
|
|
|
|
file_roots:
|
|
|
|
base:
|
|
|
|
- /srv/salt
|
|
|
|
pillar_roots:
|
|
|
|
base:
|
|
|
|
- /srv/pillar
|
|
|
|
minion:
|
|
|
|
master: localhost
|
|
|
|
fileserver_backend:
|
|
|
|
- rootfs
|
|
|
|
file_roots:
|
|
|
|
base:
|
|
|
|
- /srv/salt
|
|
|
|
pillar_roots:
|
|
|
|
base:
|
|
|
|
- /srv/pillar
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
name: inspec
|
|
|
|
sudo: true
|
|
|
|
reporter:
|
|
|
|
- cli
|
|
|
|
|
|
|
|
suites:
|
|
|
|
# Latest distros, latest salt, python3
|
|
|
|
# These distros have py3 packages available in salt's repo
|
|
|
|
- name: v2019-2-py3
|
|
|
|
includes:
|
|
|
|
- debian-9
|
|
|
|
- ubuntu-18.04
|
|
|
|
- centos-7
|
|
|
|
provisioner:
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_version: '2019.2'
|
2019-03-27 13:07:06 +01:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2019.2'
|
|
|
|
py_ver: 'py3'
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2019-2
|
|
|
|
|
|
|
|
# Latest distros, latest salt, python2
|
|
|
|
# Fedora ships updated py2 versions in their own repos
|
|
|
|
- name: v2019-2-py2
|
|
|
|
includes:
|
|
|
|
- fedora-29
|
|
|
|
provisioner:
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_version: '2019.2'
|
2019-03-27 13:07:06 +01:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2019.2'
|
|
|
|
py_ver: 'py2'
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2019-2
|
|
|
|
|
|
|
|
# Previous distros, previous salt, python2
|
|
|
|
- name: v2018-3-py2
|
|
|
|
includes:
|
|
|
|
- debian-8
|
|
|
|
- ubuntu-16.04
|
|
|
|
- opensuse-42.3
|
|
|
|
provisioner:
|
2019-03-31 17:01:55 +02:00
|
|
|
# We require an old version of salt in the provisioner or,
|
2019-03-27 13:07:06 +01:00
|
|
|
# the salt formula fails to downgrade to the desired version to test
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_version: '2018.3'
|
2019-03-27 13:07:06 +01:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2018.3'
|
|
|
|
py_ver: 'py2'
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2018-3
|
2019-03-31 17:01:55 +02:00
|
|
|
|
|
|
|
# To test salt on centos-6 we need to first use a python-2.6 version of salt (2016.11)
|
|
|
|
# and then upgrade it. See https://github.com/saltstack/salt/issues/47864
|
2019-03-31 21:55:17 +02:00
|
|
|
- name: v2018-3-py2-bootstrap
|
2019-03-31 17:01:55 +02:00
|
|
|
includes:
|
|
|
|
- centos-6
|
|
|
|
provisioner:
|
2019-03-31 21:55:17 +02:00
|
|
|
# As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
|
|
|
|
salt_bootstrap_options: -X -d stable %s
|
|
|
|
salt_version: '2018.3'
|
2019-03-31 17:01:55 +02:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2018.3'
|
|
|
|
py_ver: 'py2'
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2018-3
|
|
|
|
|
2019-03-27 13:07:06 +01:00
|
|
|
# To tests fedora 28 & salt v2018.2, we need to force the package version
|
|
|
|
# otherwise the image, which includes the 'updates' repo, will install 2019.2
|
2019-03-31 17:26:23 +02:00
|
|
|
- name: v2018-3-py2-forced-version
|
2019-03-27 13:07:06 +01:00
|
|
|
includes:
|
|
|
|
- fedora-28
|
|
|
|
provisioner:
|
2019-03-31 17:01:55 +02:00
|
|
|
# We require an old version of salt in the provisioner or,
|
2019-03-27 13:07:06 +01:00
|
|
|
# the salt formula fails to downgrade to the desired version to test
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_version: '2018.3'
|
2019-03-27 13:07:06 +01:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2018.3'
|
|
|
|
py_ver: 'py2'
|
|
|
|
version: '2018.3.0-1.fc28'
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2018-3
|
2019-03-31 17:01:55 +02:00
|
|
|
|
2019-03-27 13:07:06 +01:00
|
|
|
# Previous distros, oldest salt, python2
|
|
|
|
- name: v2017-7-py2
|
|
|
|
includes:
|
|
|
|
- debian-8
|
|
|
|
- ubuntu-16.04
|
|
|
|
provisioner:
|
2019-03-31 17:01:55 +02:00
|
|
|
# We require an old version of salt in the provisioner or,
|
2019-03-27 13:07:06 +01:00
|
|
|
# the salt formula fails to downgrade to the desired version to test
|
2019-03-31 21:17:02 +02:00
|
|
|
salt_version: '2017.7'
|
2019-03-27 13:07:06 +01:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2017.7'
|
|
|
|
py_ver: 'py2'
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2017-7
|
2019-03-31 17:01:55 +02:00
|
|
|
|
|
|
|
# To test salt on centos-6 we need to first use a python-2.6 version of salt (2016.11)
|
|
|
|
# and then upgrade it. See https://github.com/saltstack/salt/issues/47864
|
2019-03-31 21:55:17 +02:00
|
|
|
- name: v2017-7-py2-bootstrap
|
2019-03-31 17:01:55 +02:00
|
|
|
includes:
|
|
|
|
- centos-6
|
|
|
|
provisioner:
|
2019-03-31 21:55:17 +02:00
|
|
|
# As centos-6 ships with python2.6, we use the bootstrapper to install python2.7
|
|
|
|
salt_bootstrap_options: -X -d stable %s
|
|
|
|
salt_version: '2017.7'
|
2019-03-31 17:01:55 +02:00
|
|
|
pillars:
|
|
|
|
salt.sls:
|
|
|
|
salt:
|
|
|
|
release: '2017.7'
|
|
|
|
py_ver: 'py2'
|
|
|
|
verifier:
|
|
|
|
inspec_tests:
|
|
|
|
- path: test/integration/2017-7
|
|
|
|
|