Skip to content

Commit

Permalink
[feature] Add support for Ubuntu 24.04 and Debian 12
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Sep 5, 2024
1 parent 555778c commit f87eded
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
ansible_interpreter: /usr/bin/python3
- distro: ubuntu2204
ansible_interpreter: /usr/bin/python3
- distro: ubuntu2404
ansible_interpreter: /usr/bin/python3
- distro: debian11
ansible_interpreter: /usr/bin/python3
- distro: debian12
ansible_interpreter: /usr/bin/python3

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ pip install molecule[docker,ansible] yamllint ansible-lint docker
**Step 4**: Download docker images
```
docker pull geerlingguy/docker-ubuntu2404-ansible:latest
docker pull geerlingguy/docker-ubuntu2204-ansible:latest
docker pull geerlingguy/docker-ubuntu2004-ansible:latest
docker pull geerlingguy/docker-debian12-ansible:latest
docker pull geerlingguy/docker-debian11-ansible:latest
```
Expand Down
17 changes: 16 additions & 1 deletion molecule/local/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ platforms:
cgroupns_mode: host
privileged: true
pre_build_image: true
- name: "openwisp2-ubuntu2404"
image: "geerlingguy/docker-ubuntu2404-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
- name: "openwisp2-debian11"
image: "geerlingguy/docker-debian11-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
Expand All @@ -31,6 +39,14 @@ platforms:
cgroupns_mode: host
privileged: true
pre_build_image: true
- name: "openwisp2-debian12"
image: "geerlingguy/docker-debian12-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
# TODO: Add platforms for RHEL 7 and 8
provisioner:
name: ansible
Expand All @@ -41,7 +57,6 @@ provisioner:
verify: ../resources/verify.yml
config_options:
defaults:
stdout_callback: yaml
bin_ansible_callbacks: true
verifier:
name: ansible

0 comments on commit f87eded

Please sign in to comment.