salt-bootstrap/kitchen.yml

264 lines
7.4 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
run_command: /usr/lib/systemd/systemd
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:
2022-12-19 12:39:55 -08:00
- name: almalinux-9
2022-12-20 12:18:10 -08:00
driver:
provision_command:
- dnf -y install crypto-policies-scripts procps-ng
- update-crypto-policies --set DEFAULT:SHA1
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
2021-06-25 23:28:38 +01:00
- name: almalinux-8
2018-11-12 15:23:52 -05:00
- name: amazon-2
driver:
2018-11-12 15:23:52 -05:00
image: amazonlinux:2
platform: rhel
provision_command:
2019-12-13 16:55:25 -07:00
- yum -y install procps-ng
2023-03-19 14:14:48 -07:00
- name: amazon-2023
driver:
image: amazonlinux:2023
platform: fedora
provision_command:
- yum -y install procps-ng
2019-04-07 10:53:40 +01:00
- name: arch
driver:
image: archlinux/archlinux
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
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
2022-12-19 12:39:55 -08:00
- name: centos-stream9
driver:
platform: centosstream
2023-02-09 11:24:36 -08:00
image: quay.io/centos/centos:stream9
provision_command:
- dnf -y install crypto-policies-scripts procps-ng
- update-crypto-policies --set DEFAULT:SHA1
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
2021-10-09 13:38:50 +01:00
- name: centos-stream8
driver:
image: quay.io/centos/centos:stream8
2019-04-07 10:53:40 +01:00
- name: centos-7
driver:
2019-04-07 10:07:44 +01:00
run_command: /lib/systemd/systemd
2019-10-14 11:51:32 -06:00
- name: debian-10
driver:
2019-10-14 11:51:32 -06:00
run_command: /lib/systemd/systemd
2020-12-09 05:19:06 +00:00
- name: debian-11
driver:
2020-12-09 05:19:06 +00:00
image: debian:bullseye
run_command: /lib/systemd/systemd
- name: debian-12
driver:
image: debian:bullseye
run_command: /lib/systemd/systemd
2022-12-09 06:33:08 +00:00
- name: fedora-38
driver:
provision_command: *fedora_provision_command
- name: fedora-39
driver:
provision_command: *fedora_provision_command
- name: gentoo
driver:
image: gentoo/stage3:latest
run_command: /sbin/init
provision_command:
- rc-update add sshd default
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
- name: gentoo-systemd
driver:
image: gentoo/stage3:systemd
run_command: /lib/systemd/systemd
provision_command:
- systemctl enable sshd.service
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
2019-04-06 13:04:09 +01:00
- name: opensuse-15
driver:
image: opensuse/leap:15.4
provision_command:
- &opensuse_provision_command_01 zypper --non-interactive install --auto-agree-with-licenses dbus-1
- &opensuse_provision_command_02 zypper --non-interactive install --auto-agree-with-licenses sudo openssh which curl systemd
- &opensuse_provision_command_03 systemctl enable sshd.service
- name: opensuse-tumbleweed
driver:
image: opensuse/tumbleweed:latest
provision_command:
- *opensuse_provision_command_01
- *opensuse_provision_command_02
- *opensuse_provision_command_03
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
- name: rockylinux-9
driver:
platform: centosstream
run_command: /usr/lib/systemd/systemd
provision_command:
- dnf -y install crypto-policies-scripts procps-ng
- update-crypto-policies --set DEFAULT:SHA1
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
- name: rockylinux-8
- name: oraclelinux-8
- name: oraclelinux-7
- name: rockylinux-8
2022-04-23 10:05:45 +02:00
- name: ubuntu-22.04
driver:
run_command: /lib/systemd/systemd
provision_command:
- echo "PubkeyAcceptedAlgorithms +ssh-rsa" | tee -a /etc/ssh/sshd_config
- name: ubuntu-23.10
driver:
run_command: /lib/systemd/systemd
2020-06-17 16:30:02 -06:00
- name: ubuntu-20.04
driver:
2020-06-17 16:30:02 -06:00
run_command: /lib/systemd/systemd
- name: photon-4
driver:
image: photon:4.0
provision_command:
- tdnf -y install rpm procps-ng coreutils gawk
- echo "PubkeyAcceptedKeyTypes +ssh-rsa" | tee -a /etc/ssh/sshd_config
- sed -ie 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
- systemctl enable sshd.service
- name: photon-5
driver:
image: photon:5.0
provision_command:
- tdnf -y install rpm procps-ng coreutils gawk
- echo "PubkeyAcceptedKeyTypes +ssh-rsa" | tee -a /etc/ssh/sshd_config
- sed -ie 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
- systemctl enable sshd.service
2018-08-14 11:34:13 -05:00
2018-08-14 09:26:59 -05:00
suites:
2023-04-20 14:23:12 -07:00
- name: git-3006
2023-04-18 18:50:26 -07:00
provisioner:
salt_version: v3006
2023-04-18 18:50:26 -07:00
salt_bootstrap_options: -x python3 -MPfq git %s
excludes:
- opensuse-15
- opensuse-tumbleweed
- debian-11
- arch
- gentoo
- gentoo-systemd
- freebsd-131
- freebsd-123
- openbsd-6
- name: git-3006x
provisioner:
salt_version: 3006.x
salt_bootstrap_options: -x python3 -MPfq git %s
excludes:
- opensuse-15
- opensuse-tumbleweed
- arch
- gentoo
- gentoo-systemd
- freebsd-131
- freebsd-123
- openbsd-6
2023-04-18 18:50:26 -07:00
- name: stable-3006
provisioner:
salt_version: 3006
salt_bootstrap_options: -x python3 -MP stable %s
excludes:
- opensuse-15
- opensuse-tumbleweed
- arch
- freebsd-131
- freebsd-123
- openbsd-6
- name: stable-3006-6
provisioner:
salt_version: 3006.6
salt_bootstrap_options: -x python3 -MP stable %s
excludes:
- opensuse-15
- opensuse-tumbleweed
- arch
- freebsd-131
- freebsd-123
- openbsd-6
- name: git-master
provisioner:
salt_version: master
salt_bootstrap_options: -x python3 -MPfq -D git %s
2018-08-14 09:26:59 -05:00
- name: latest
provisioner:
salt_version: latest
salt_bootstrap_options: -MP stable %s
- name: default
provisioner:
salt_version: latest
salt_bootstrap_options: -MP
- name: onedir-nightly
provisioner:
salt_version: nightly
salt_bootstrap_options: -MP onedir %s
2022-11-03 11:32:55 -07:00
- name: onedir-latest
provisioner:
salt_version: latest
salt_bootstrap_options: -MP onedir %s
2022-11-03 11:32:55 -07:00
- name: onedir-3005
provisioner:
salt_version: 3005
salt_bootstrap_options: -MP onedir %s
2023-04-18 18:50:26 -07:00
- name: onedir-3006
provisioner:
salt_version: 3006
salt_bootstrap_options: -MP onedir %s
- name: onedir-rc-3007-0rc1
2023-03-14 13:48:23 -07:00
provisioner:
salt_version: 3007.0rc1
2023-03-14 13:48:23 -07:00
salt_bootstrap_options: -R staging.repo.saltproject.io -MP onedir_rc %s
excludes:
- arch
- freebsd-131
- freebsd-123
- gentoo
- openbsd-6
- opensuse-15
- opensuse-tumbleweed
- name: quickstart
provisioner:
salt_bootstrap_options: -Q
verifier:
name: shell
remote_exec: false
command: pytest --cache-clear -v -s -ra --log-cli-level=info tests/integration/