-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmolecule.yml
92 lines (85 loc) · 1.92 KB
/
molecule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: database
image: "bodsch/ansible-debian:12"
command: ${MOLECULE_DOCKER_COMMAND:-""}
docker_host: "${DOCKER_HOST:-unix://run/docker.sock}"
privileged: true
pre_build_image: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- /var/lib/containerd
tmpfs:
- /run
- /tmp
groups:
- database
docker_networks:
- name: icinga
ipam_config:
- subnet: "10.11.0.0/24"
gateway: "10.11.0.254"
networks:
- name: icinga
ipv4_address: "10.11.0.1"
# - name: icinga2
# image: "bodsch/ansible-debian:12"
# command: ${MOLECULE_DOCKER_COMMAND:-""}
# docker_host: "${DOCKER_HOST:-unix://run/docker.sock}"
# privileged: true
# pre_build_image: true
# volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
# groups:
# - icinga
# networks:
# - name: icinga
# ipv4_address: "10.11.0.2"
- name: instance
image: "bodsch/ansible-${DISTRIBUTION:-debian:12}"
command: ${MOLECULE_DOCKER_COMMAND:-""}
docker_host: "${DOCKER_HOST:-unix://run/docker.sock}"
privileged: true
pre_build_image: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- /var/lib/containerd
tmpfs:
- /run
- /tmp
published_ports:
- 80:80
networks:
- name: icinga
ipv4_address: "10.11.0.3"
provisioner:
name: ansible
ansible_args:
- --diff
- -v
config_options:
defaults:
deprecation_warnings: true
stdout_callback: yaml
gathering: smart
fact_caching: jsonfile
fact_caching_timeout: 8640
fact_caching_connection: ansible_facts
scenario:
test_sequence:
- destroy
- dependency
- syntax
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra