Skip to content

Commit

Permalink
Fix dockers for molecule
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Jan 21, 2025
1 parent c11f6d4 commit eaea394
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ on:
workflow_dispatch:
inputs:
package_name:
description: 'The name of the package to delete'
description: 'The name of the package to delete'
required: true

jobs:
remove-package-versions:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: purge packages
uses: dylanratcliffe/delete-untagged-containers@main
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/molecule-mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: "Set up Python 3.12"
uses: "actions/setup-python@v5"
with:
python-version: 3.8
python-version: "3.12"

- name: Installing dependencies
run: pip install jinja2 ansible molecule molecule-docker pytest-testinfra pytest setuptools
run: |
pip install jinja2 ansible molecule molecule-docker pytest-testinfra pytest setuptools
- name: Run role tests
run: molecule test -s mongo
run: |
molecule test -s mongo
12 changes: 7 additions & 5 deletions .github/workflows/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v5
- name: "Set up Python 3.12"
uses: "actions/setup-python@v5"
with:
python-version: 3.8
python-version: "3.12"

- name: Installing dependencies
run: pip install jinja2 ansible
run: |
pip install jinja2 ansible
- name: Run syntax check
run: ./scripts/syntax-check
run: |
./scripts/syntax-check
6 changes: 4 additions & 2 deletions molecule/galera/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ platforms:
privileged: True
networks:
- name: mariadb
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- "/tmp"
- "/run"
- "/sys/fs/cgroup"
groups:
- storage
- dbcluster
Expand Down
12 changes: 7 additions & 5 deletions molecule/loadbalancer/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ platforms:
dockerfile: ../Dockerfile-Rocky9.j2
command: /usr/sbin/init
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- "/tmp"
- "/run"
- "/sys/fs/cgroup"
groups:
- "loadbalancer-vm"
- loadbalancer_ha
- selfsigned_certs
- loadbalancer
- "loadbalancer_ha"
- "selfsigned_certs"
- "loadbalancer"

provisioner:
name: ansible
Expand Down
6 changes: 4 additions & 2 deletions molecule/mongo/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ platforms:
image: rockylinux:9
command: /usr/sbin/init
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- "/tmp"
- "/run"
- "/sys/fs/cgroup"
groups:
- mongo_servers

Expand Down

0 comments on commit eaea394

Please sign in to comment.