2020-01-12 13:50:03 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
dependency:
|
|
|
|
name: galaxy
|
|
|
|
driver:
|
|
|
|
name: docker
|
2021-04-18 21:39:06 +02:00
|
|
|
scenario:
|
|
|
|
test_sequence:
|
|
|
|
- dependency
|
|
|
|
- lint
|
|
|
|
- cleanup
|
|
|
|
- destroy
|
|
|
|
- syntax
|
|
|
|
- create
|
|
|
|
- prepare
|
|
|
|
- check
|
|
|
|
- converge
|
|
|
|
- idempotence
|
|
|
|
- side_effect
|
|
|
|
- verify
|
|
|
|
- cleanup
|
|
|
|
- destroy
|
2020-09-26 16:50:03 +02:00
|
|
|
lint: |
|
|
|
|
set -e
|
2020-10-17 17:31:04 +02:00
|
|
|
yamllint -s .
|
2021-02-16 16:46:01 +01:00
|
|
|
ansible-lint --exclude molecule/
|
2020-01-12 13:50:03 +01:00
|
|
|
platforms:
|
|
|
|
- name: node1
|
2020-12-12 17:21:17 +01:00
|
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
2020-01-12 13:50:03 +01:00
|
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
|
|
privileged: true
|
|
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
|
|
networks:
|
|
|
|
- name: k3snet
|
|
|
|
- name: node2
|
2020-12-12 17:21:17 +01:00
|
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
2020-01-12 13:50:03 +01:00
|
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
|
|
privileged: true
|
|
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
|
|
networks:
|
|
|
|
- name: k3snet
|
|
|
|
- name: node3
|
2020-12-12 17:21:17 +01:00
|
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
2020-01-12 13:50:03 +01:00
|
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
|
|
privileged: true
|
|
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
|
|
networks:
|
|
|
|
- name: k3snet
|
|
|
|
- name: database
|
|
|
|
image: postgres:11-alpine
|
|
|
|
pre_build_image: true
|
|
|
|
command: "postgres"
|
|
|
|
env:
|
|
|
|
POSTGRES_PASSWORD: "verybadpass"
|
|
|
|
networks:
|
|
|
|
- name: k3snet
|
|
|
|
- name: loadbalancer
|
2022-02-17 21:43:24 +01:00
|
|
|
image: geerlingguy/docker-rockylinux8-ansible:latest
|
2020-01-12 13:50:03 +01:00
|
|
|
pre_build_image: true
|
|
|
|
ports:
|
|
|
|
- "6443:6443"
|
|
|
|
networks:
|
|
|
|
- name: k3snet
|
|
|
|
provisioner:
|
|
|
|
name: ansible
|
|
|
|
options:
|
|
|
|
verbose: true
|