Skip to content

Commit

Permalink
simplifies molecule config and removes old distros
Browse files Browse the repository at this point in the history
  • Loading branch information
wookietreiber committed Jan 30, 2025
1 parent dbfb111 commit d67a063
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 113 deletions.
28 changes: 28 additions & 0 deletions .config/molecule/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---

dependency:
name: galaxy

driver:
name: docker

platforms:

- name: rockylinux-9
image: ghcr.io/hspaans/molecule-containers:rockylinux-9
pre_build_image: yes
privileged: yes
groups:
- nosudo

provisioner:
name: ansible
inventory:
group_vars:
nosudo:
ansible_become_method: su

verifier:
name: ansible

...
5 changes: 1 addition & 4 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ jobs:
fail-fast: false
matrix:
distro:
- centos-7
- centos-8
- rocky-8
- rocky-9
- rockylinux-9
scenario:
- default
- alternative
Expand Down
2 changes: 0 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ galaxy_info:

- name: EL
versions:
- '7'
- '8'
- '9'

galaxy_tags:
Expand Down
10 changes: 0 additions & 10 deletions molecule/alternative/converge.yml

This file was deleted.

49 changes: 2 additions & 47 deletions molecule/alternative/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,8 @@
---

dependency:
name: galaxy

driver:
name: docker

platforms:

- name: centos-7
image: geerlingguy/docker-centos7-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: centos-8
image: geerlingguy/docker-centos8-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: rocky-8
image: geerlingguy/docker-rockylinux8-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: rocky-9
image: geerlingguy/docker-rockylinux9-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

provisioner:
playbooks:
converge: ../default/converge.yml
name: ansible
inventory:
group_vars:
Expand All @@ -53,7 +11,4 @@ provisioner:
rclone_binary_install_bin_dir: /opt/usr/local/bin
rclone_binary_install_cache_dir: /opt/var/cache

verifier:
name: ansible

...
50 changes: 0 additions & 50 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,3 @@
---

dependency:
name: galaxy

driver:
name: docker

platforms:

- name: centos-7
image: geerlingguy/docker-centos7-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: centos-8
image: geerlingguy/docker-centos8-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: rocky-8
image: geerlingguy/docker-rockylinux8-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

- name: rocky-9
image: geerlingguy/docker-rockylinux9-ansible
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: yes
pre_build_image: yes

provisioner:
name: ansible

verifier:
name: ansible

...

0 comments on commit d67a063

Please sign in to comment.