-
Notifications
You must be signed in to change notification settings - Fork 1
/
molecule.yml
94 lines (88 loc) · 2.23 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
93
94
---
dependency:
name: galaxy
options:
force: true
role-file: ${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml
requirements-file: ${MOLECULE_SCENARIO_DIRECTORY}/../../../meta/requirements.yml
driver:
name: docker
platforms:
- name: mclient
hostname: molecule.mclient.local
image: ${MOLECULE_DOCKER_IMAGE:-geerlingguy/docker-centos7-ansible:latest}
required: true
command: ""
cgroupns_mode: host
privileged: true
pre_build_image: ${MOLECULE_PRE_BUILD_IMAGE:-true}
volumes:
- ./molecule-data:/storage/molecule
keep_volumes: false
groups:
- all
- monitoring_client
- monitoring_service
- centos7
docker_networks:
- name: monitoring
ipam_config:
- subnet: 192.168.56.0/24
gateway: 192.168.56.1
networks:
- name: monitoring
ipv4_address: 192.168.56.2
etc_hosts:
molecule.mserv.local: 192.168.56.3
- name: mserv
hostname: molecule.mserv.local
image: ${MOLECULE_DOCKER_IMAGE:-geerlingguy/docker-centos7-ansible:latest}
required: true
command: ""
cgroupns_mode: host
privileged: true
pre_build_image: ${MOLECULE_PRE_BUILD_IMAGE:-true}
volumes:
- ./molecule-data:/storage/molecule
keep_volumes: false
groups:
- all
- monitoring_host
- monitoring_service
- centos7
networks:
- name: monitoring
ipv4_address: 192.168.56.3
exposed_ports:
- 80
- 443
etc_hosts:
molecule.mclient.local: 192.168.56.2
provisioner:
name: ansible
log: true
config_options:
defaults:
callbacks_enabled: profile_tasks, timer, yaml
stdout_callback: yaml
tags:
run: ${MOLECULE_RUN_TAGS:-all}
inventory:
links:
hosts: ../resources/monitoring/inventory/hosts.yml
group_vars: ../resources/monitoring/inventory/group_vars/
host_vars: ../resources/monitoring/inventory/host_vars/
playbooks:
converge: ../resources/monitoring/converge.yml
prepare: ../resources/monitoring/prepare.yml
verify: ../resources/monitoring/verify.yml
env:
ANSIBLE_VERBOSITY: "1"
verifier:
name: ansible
env:
ANSIBLE_VERBOSITY: "1"
lint: |
set -e
yamllint .
ansible-lint .