salt-bootstrap/.kitchen.yml

227 lines
5.5 KiB
YAML
Raw Normal View History

2018-08-14 09:26:59 -05:00
---
driver:
name: docker
use_sudo: false
hostname: salt
privileged: true
2019-04-07 13:33:46 +01:00
username: root
2018-08-14 09:26:59 -05:00
cap_add:
- sys_admin
disable_upstart: false
use_internal_docker_network: false
2018-08-14 09:26:59 -05:00
provisioner:
name: salt_solo
salt_install: bootstrap
salt_bootstrap_url: bootstrap-salt.sh
2018-08-14 17:13:57 -05:00
salt_bootstrap_options: -MPfq git %s
2018-08-14 09:26:59 -05:00
install_after_init_environment: true
log_level: info
2019-04-07 13:33:46 +01:00
sudo: false
2018-08-14 09:26:59 -05:00
require_chef: false
formula: tests
2019-04-06 18:13:36 +01:00
run_salt_call: false
init_environment: |
echo 'auto_accept: true' > /tmp/auto-accept-keys.conf
2019-04-07 13:33:46 +01:00
mkdir -p /etc/salt/master.d
mv /tmp/auto-accept-keys.conf /etc/salt/master.d/auto-accept-keys.conf
2019-04-07 10:47:34 +01:00
sh -c 't=$(shuf -i 1-15 -n 1); echo Sleeping $t seconds; sleep $t'
2018-08-14 09:26:59 -05:00
platforms:
2018-08-14 12:12:35 -05:00
- name: amazon-1
driver_config:
image: amazonlinux:1
platform: rhel
2019-04-07 10:07:44 +01:00
run_command: /sbin/init
2018-08-14 12:12:35 -05:00
provision_command:
- yum install -y upstart
2018-11-12 15:23:52 -05:00
- name: amazon-2
driver_config:
image: amazonlinux:2
platform: rhel
2019-04-07 10:07:44 +01:00
run_command: /usr/lib/systemd/systemd
provision_command:
2019-12-13 16:55:25 -07:00
- yum -y install procps-ng
2019-04-07 10:53:40 +01:00
- name: arch
2018-08-14 09:26:59 -05:00
driver_config:
2019-04-07 10:53:40 +01:00
image: archlinux/base
run_command: /usr/lib/systemd/systemd
2019-04-07 10:07:44 +01:00
provision_command:
2019-04-07 10:53:40 +01:00
- pacman -Syu --noconfirm --needed systemd grep awk procps which
- systemctl enable sshd
provisioner:
salt_bootstrap_options: -MPfq -D -y -x python2 git %s
2019-10-14 11:51:32 -06:00
- name: centos-8
driver_config:
run_command: /usr/lib/systemd/systemd
2019-04-07 10:53:40 +01:00
- name: centos-7
2018-08-14 09:26:59 -05:00
driver_config:
2019-04-07 10:53:40 +01:00
run_command: /usr/lib/systemd/systemd
- name: centos-6
2018-08-14 09:26:59 -05:00
driver_config:
2019-04-07 10:07:44 +01:00
run_command: /sbin/init
2018-08-14 09:26:59 -05:00
provision_command:
2019-04-07 10:53:40 +01:00
- yum install -y upstart
provisioner:
salt_bootstrap_options: -MPfq -y -x python2.7 git %s
2018-08-14 09:26:59 -05:00
- name: debian-8
driver_config:
2019-04-07 10:07:44 +01:00
run_command: /lib/systemd/systemd
2018-08-14 09:26:59 -05:00
provision_command:
- apt-get install -y dbus
- name: debian-9
driver_config:
2019-04-07 10:07:44 +01:00
run_command: /lib/systemd/systemd
2019-10-14 11:51:32 -06:00
- name: debian-10
2018-08-14 09:26:59 -05:00
driver_config:
2019-10-14 11:51:32 -06:00
run_command: /lib/systemd/systemd
- name: fedora-30
driver_config:
image: fedora:30
run_command: /usr/lib/systemd/systemd
2020-02-01 16:47:26 +00:00
provision_command:
- dnf -y install procps-ng
2019-10-31 17:18:47 -04:00
- name: fedora-31
driver_config:
image: fedora:31
run_command: /usr/lib/systemd/systemd
2020-02-01 16:47:26 +00:00
provision_command:
- dnf -y install procps-ng
- name: fedora-32
driver_config:
image: fedora:32
run_command: /usr/lib/systemd/systemd
provision_command:
- dnf -y install procps-ng
2019-04-06 13:04:09 +01:00
- name: opensuse-15
driver_config:
image: opensuse/leap:15.1
2019-04-07 10:07:44 +01:00
run_command: /usr/lib/systemd/systemd
2019-04-06 13:04:09 +01:00
provision_command:
2019-04-14 12:26:39 +01:00
- zypper --non-interactive install --auto-agree-with-licenses dbus-1
- zypper --non-interactive install --auto-agree-with-licenses sudo openssh which curl
2019-04-06 13:04:09 +01:00
- systemctl enable sshd.service
provisioner:
salt_bootstrap_options: -MPfq -y -x python2 git %s
2020-06-17 16:30:02 -06:00
- name: ubuntu-20.04
driver_config:
run_command: /lib/systemd/systemd
2019-04-07 10:53:40 +01:00
- name: ubuntu-18.04
driver_config:
run_command: /lib/systemd/systemd
- name: ubuntu-16.04
driver_config:
run_command: /lib/systemd/systemd
2018-08-14 11:34:13 -05:00
2018-08-14 09:26:59 -05:00
suites:
2019-04-06 13:31:07 +01:00
- name: py2-git-2019-2
2018-08-14 09:26:59 -05:00
provisioner:
2019-01-08 09:28:10 -05:00
salt_version: 2019.2
- name: py2-git-3000
provisioner:
2020-01-29 14:12:06 +00:00
salt_version: 3000
2019-10-30 17:01:02 -04:00
- name: py2-git-master
provisioner:
salt_version: master
- name: py2-stable-2019-2
2018-08-14 09:26:59 -05:00
provisioner:
2019-10-30 17:01:02 -04:00
salt_version: 2019.2
2019-04-06 13:31:07 +01:00
salt_bootstrap_options: -MP stable %s
2019-04-06 13:58:12 +01:00
excludes:
- arch
- opensuse-15
- fedora-30
- fedora-31
- fedora-32
2020-06-17 16:30:02 -06:00
- ubuntu-2004
- name: py2-stable-3000
provisioner:
salt_version: 3000
salt_bootstrap_options: -MP stable %s
excludes:
- arch
- opensuse-15
- fedora-30
- fedora-31
- fedora-32
2020-06-17 16:30:02 -06:00
- ubuntu-2004
- name: py3-git-3000
provisioner:
2020-01-29 14:12:06 +00:00
salt_version: 3000
salt_bootstrap_options: -x python3 -MPfq git %s
excludes:
- amazon-1
- centos-6
- debian-8
2020-06-17 16:30:02 -06:00
- ubuntu-2004
2019-10-30 17:01:02 -04:00
- name: py3-git-2019-2
2019-04-06 13:31:07 +01:00
provisioner:
salt_version: 2019.2
2019-12-12 17:55:16 -07:00
salt_bootstrap_options: -x python3 -MPfq git %s
2019-04-06 13:58:12 +01:00
excludes:
2019-10-30 17:01:02 -04:00
- amazon-1
- centos-6
- debian-8
2020-06-17 16:30:02 -06:00
- ubuntu-2004
- name: py3-git-3001
2019-10-30 17:01:02 -04:00
provisioner:
2020-06-17 16:30:02 -06:00
salt_version: 3001
salt_bootstrap_options: -x python3 -MPfq git %s
2019-10-30 17:01:02 -04:00
excludes:
- amazon-1
- centos-6
- debian-8
- name: py3-stable-2019-2
provisioner:
salt_version: 2019.2
salt_bootstrap_options: -x python3 -MP stable %s
2019-10-30 17:01:02 -04:00
excludes:
- amazon-1
- centos-6
- debian-8
- opensuse-15
- arch
2020-06-17 16:30:02 -06:00
- ubuntu-2004
- name: py3-stable-3000
provisioner:
salt_version: 3000
salt_bootstrap_options: -x python3 -MP stable %s
excludes:
- amazon-1
- centos-6
- debian-8
- opensuse-15
- arch
2020-06-17 16:30:02 -06:00
- ubuntu-2004
- name: py3-stable-3001
provisioner:
salt_version: 3001
salt_bootstrap_options: -x python3 -MP stable %s
excludes:
- amazon-1
- centos-6
- debian-8
- opensuse-15
- arch
- name: py3-git-master
provisioner:
salt_version: master
salt_bootstrap_options: -x python3 -MPfq -D git %s
excludes:
- amazon-1
- centos-6
- debian-8
2018-08-14 09:26:59 -05:00
- name: latest
provisioner:
salt_version: latest
salt_bootstrap_options: -MP stable %s
excludes:
- arch
verifier:
name: shell
remote_exec: false
command: pytest --cache-clear -v -s -ra --log-cli-level=info tests/integration/