Skip to content

Commit

Permalink
Add rocky9 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
drmatthews committed Dec 18, 2023
1 parent e237586 commit 7ec38d8
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions tests/molecule/role/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ dependency:
name: galaxy
options:
force: true
role-file: "${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml"
requirements-file: "${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml"
role-file: ${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml
requirements-file: ${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml

driver:
name: docker

platforms:
- name: instance
hostname: molecule.instance.local
- name: centos7
hostname: molecule.centos7.local
image: ${MOLECULE_DOCKER_IMAGE:-geerlingguy/docker-centos7-ansible:latest}
required: true
command: ""
Expand All @@ -28,11 +28,31 @@ platforms:
docker_networks:
- name: molecule
ipam_config:
- subnet: "192.168.56.0/24"
gateway: "192.168.56.1"
- subnet: 192.168.56.0/24
gateway: 192.168.56.1
networks:
- name: molecule
ipv4_address: "192.168.56.2"
ipv4_address: 192.168.56.2

- name: rocky9
hostname: molecule.rocky9.local
image: ${MOLECULE_DOCKER_IMAGE:-geerlingguy/docker-rockylinux9-ansible:latest}
required: true
command: ""
cgroupns_mode: host
privileged: true
pre_build_image: ${MOLECULE_PRE_BUILD_IMAGE:-true}
volumes:
- ${MOLECULE_SCENARIO_DIRECTORY}/molecule-data:/storage/molecule
- /sys/fs/cgroup:/sys/fs/cgroup:rw
keep_volumes: false
groups:
- all
- molecule
- rocky9
networks:
- name: molecule
ipv4_address: 192.168.56.3

provisioner:
name: ansible
Expand Down

0 comments on commit 7ec38d8

Please sign in to comment.