From 7ec38d8a653432018255c76f762d754ae7f7d961 Mon Sep 17 00:00:00 2001 From: Daniel Matthews Date: Mon, 18 Dec 2023 20:29:05 +0000 Subject: [PATCH] Add rocky9 platform --- tests/molecule/role/molecule.yml | 34 +++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/tests/molecule/role/molecule.yml b/tests/molecule/role/molecule.yml index 794dd81d..c7761151 100644 --- a/tests/molecule/role/molecule.yml +++ b/tests/molecule/role/molecule.yml @@ -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: "" @@ -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