Skip to content

Commit ccbc1ed

Browse files
authored
Test on Fedora 41 (#517)
1 parent d2f9185 commit ccbc1ed

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

molecule/default/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV {{ var }} {{ value }}
1515
{% endif %}
1616

1717
RUN if [ $(command -v apt-get) ]; then export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y python3 sudo bash ca-certificates iproute2 python3-apt python3-psutil aptitude rsync && apt-get clean && rm -rf /var/lib/apt/lists/*; \
18-
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 sudo bash iproute python3-psutil rsync && dnf clean all; \
18+
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 sudo bash iproute $(dnf info python3-libdnf5 &>/dev/null && echo python3-libdnf5) python3-psutil rsync && dnf clean all; \
1919
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y /usr/bin/python /usr/bin/python2-config sudo yum-plugin-ovl bash iproute python-psutil rsync && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
2020
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python311 python311-psutil sudo bash iproute2 rsync && zypper clean -a; \
2121
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python3 sudo bash ca-certificates rsync; \

molecule/default/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ platforms:
8787
- /sys/fs/cgroup:/sys/fs/cgroup:rw
8888
cgroupns_mode: host
8989
privileged: true
90+
- name: fedora-41 # EOL 2025-11-19
91+
image: dokken/fedora-41:latest
92+
override_command: false
93+
volumes:
94+
- ${MOLECULE_PROJECT_DIRECTORY}/target:/var/tmp/target
95+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
96+
cgroupns_mode: host
97+
privileged: true
9098
- name: oraclelinux-9 # EOL 2032-06-30
9199
image: dokken/oraclelinux-9:latest
92100
override_command: false

0 commit comments

Comments
 (0)