Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk committed Jun 18, 2024
1 parent 2de401f commit bc9be45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 34 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/chef-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- chef-kitchen-tests
paths:
- '.github/workflows/chef-test.yml'
- 'deployments/chef/**'
Expand Down Expand Up @@ -91,6 +92,11 @@ jobs:
with:
version: 21.12.720

- name: Update kitchen-dokken
run: |
chef env --chef-license accept
chef gem install kitchen-dokken -v 2.20.4
- run: kitchen test ${{ matrix.DISTRO }}

- uses: actions/upload-artifact@v4
Expand Down
37 changes: 3 additions & 34 deletions deployments/chef/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ driver:
name: dokken
chef_license: accept
privileged: true
cgroupns_host: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw

transport:
name: dokken
Expand All @@ -22,43 +25,31 @@ platforms:
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: centos-7
driver:
image: dokken/centos-7
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: centos-8
driver:
image: dokken/centos-8
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: centos-9
driver:
image: dokken/centos-stream-9
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: rockylinux-8
driver:
image: dokken/rockylinux-8
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: rockylinux-9
driver:
image: dokken/rockylinux-9
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: debian-9
driver:
Expand All @@ -67,29 +58,21 @@ platforms:
RUN sed -i 's|http://.*.debian.org|http://archive.debian.org|' /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: debian-10
driver:
image: dokken/debian-10
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: debian-11
driver:
image: dokken/debian-11
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: debian-12
driver:
image: dokken/debian-12
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: opensuse-12
driver:
Expand All @@ -109,50 +92,36 @@ platforms:
rm -f /usr/lib/systemd/system/anaconda.target.wants/*;
ENV init /sbin/init
pid_one_command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: opensuse-15
driver:
image: dokken/opensuse-leap-15
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: oraclelinux-7
driver:
image: dokken/oraclelinux-7
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: oraclelinux-8
driver:
image: dokken/oraclelinux-8
pid_one_command: /usr/lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: ubuntu-18.04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: ubuntu-20.04
driver:
image: dokken/ubuntu-20.04
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

- name: ubuntu-22.04
driver:
image: dokken/ubuntu-22.04
pid_one_command: /bin/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro

suites:
- name: default
Expand Down

0 comments on commit bc9be45

Please sign in to comment.