Skip to content

Commit

Permalink
feat/configure molecule for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
GVengelen committed Apr 27, 2024
1 parent be5068c commit 86bf5bd
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions roles/mimir/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,56 @@
dependency:
name: galaxy
driver:
name: podman
name: docker
platforms:
- name: molecule-grafana-mimir01
image: quay.io/rockylinux/rockylinux:8
pre_build_image: true
command: /sbin/init
tmpfs:
- /run
- /tmp
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
network: molecule
network_mode: "molecule"
published_ports:
- 7946
- 9019:9009
- 9096
- name: molecule-grafana-mimir02
image: quay.io/rockylinux/rockylinux:8
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
command: /sbin/init
tmpfs:
- /run
- /tmp
network: molecule
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
network_mode: "molecule"
published_ports:
- 7946
- 9029:9009
- 9096
- name: molecule-grafana-mimir03
image: quay.io/rockylinux/rockylinux:8
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
command: /sbin/init
tmpfs:
- /run
- /tmp
network: molecule
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
network_mode: "molecule"
published_ports:
- 7946
- 9039:9009
- 9096

provisioner:
name: ansible
env:
ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/roles

verifier:
name: testinfra
lint: |
Expand Down

0 comments on commit 86bf5bd

Please sign in to comment.