fix: use dokken containers for molecule

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-01-11 19:47:59 +00:00
parent 59eb8438fa
commit cac0f68ca2
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
2 changed files with 58 additions and 46 deletions

View file

@ -5,67 +5,56 @@ driver:
name: docker name: docker
lint: | lint: |
set -e set -e
yamllint . yamllint -c ${YAMLLINT_CONFIG_FILE} .
ansible-lint ansible-lint
platforms: platforms:
- name: bionic - name: almalinux-8
image: dokken/almalinux-8
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:ubuntu-18.04
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
- name: xenial - name: centos-7
image: dokken/centos-7
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:ubuntu-16.04
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /usr/lib/systemd/systemd
- name: stretch - name: centos-stream-8
image: dokken/centos-stream-8
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:debian-9
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
- name: buster - name: debian-9
image: dokken/debian-9
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:debian-10
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
- name: centos7 - name: debian-10
image: dokken/debian-10
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:centos-7
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
- name: centos8 - name: debian-11
image: dokken/debian-11
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:centos-8
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
groups: - name: fedora-30
- python3 image: dokken/fedora-30
- name: fedora
pre_build_image: true pre_build_image: true
image: quay.io/paulfantom/molecule-systemd:fedora-30
docker_host: "${DOCKER_HOST:-unix://var/run/docker.sock}"
privileged: true privileged: true
volumes: cgroup_parent: docker.slice
- /sys/fs/cgroup:/sys/fs/cgroup:ro command: /lib/systemd/systemd
groups: - name: ubuntu-18.04
- python3 image: dokken/ubuntu-18.04
provisioner: pre_build_image: true
name: ansible privileged: true
inventory: cgroup_parent: docker.slice
group_vars: command: /lib/systemd/systemd
python3:
ansible_python_interpreter: /usr/bin/python3
verifier: verifier:
name: testinfra name: testinfra

View file

@ -0,0 +1,23 @@
---
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
empty-lines:
max: 3
level: error
hyphens:
level: error
line-length:
max: 160