-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmolecule.yml
125 lines (119 loc) · 3.1 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
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: xnat_db
hostname: xnat.db.local
image: geerlingguy/docker-centos7-ansible:latest
required: true
command:
cgroupns_mode: host
privileged: true
pre_build_image: true
volumes:
- ./xnat-data:/storage/xnat
- ${MOLECULE_SCENARIO_DIRECTORY}/../resources/shared/resolv.conf:/etc/resolv.conf
keep_volumes: false
groups:
- all
- db
- centos7
docker_networks:
- name: xnat
ipam_config:
- subnet: 192.168.56.0/24
gateway: 192.168.56.1
networks:
- name: xnat
ipv4_address: 192.168.56.2
exposed_ports:
- 5432
etc_hosts:
xnat.web.local: 192.168.56.3
xnat.cserv.local: 192.168.56.4
- name: xnat_web
hostname: xnat.web.local
image: geerlingguy/docker-centos7-ansible:latest
required: true
command:
cgroupns_mode: host
privileged: true
pre_build_image: true
volumes:
- ./xnat-data:/storage/xnat
- ${MOLECULE_SCENARIO_DIRECTORY}/../resources/shared/resolv.conf:/etc/resolv.conf
keep_volumes: false
groups:
- all
- xnat
- container_service
- container_service_client
- centos7
networks:
- name: xnat
ipv4_address: 192.168.56.3
exposed_ports:
- 80
- 443
- 8080
- 8104
published_ports:
- 127.0.0.1:8080:80
etc_hosts:
xnat.db.local: 192.168.56.2
xnat.cserv.local: 192.168.56.4
- name: xnat_cserv
hostname: xnat.cserv.local
image: geerlingguy/docker-centos7-ansible:latest
required: true
command:
cgroupns_mode: host
privileged: true
pre_build_image: true
volumes:
- ./xnat-data:/storage/xnat
- ${MOLECULE_SCENARIO_DIRECTORY}/../resources/shared/resolv.conf:/etc/resolv.conf
keep_volumes: false
groups:
- all
- container_service
- container_service_host
- centos7
networks:
- name: xnat
ipv4_address: 192.168.56.4
exposed_ports:
- 2376
extra_hosts:
xnat.db.local: 192.168.56.2
xnat.web.local: 192.168.56.3
provisioner:
name: ansible
log: true
config_options:
defaults:
callbacks_enabled: profile_tasks, timer, yaml
stdout_callback: yaml
vault_password_file: ${MOLECULE_SCENARIO_DIRECTORY}/../resources/xnat/.vault_password
inventory:
links:
hosts: ../resources/xnat/inventory/hosts.yml
group_vars: ../resources/xnat/inventory/group_vars/
playbooks:
prepare: ../resources/shared/prepare.yml
converge: ../resources/xnat/converge.yml
verify: ../resources/xnat/verify.yml
env:
ANSIBLE_VERBOSITY: 1
ANSIBLE_ROLES_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../roles/:~/.ansible/roles
ANSIBLE_COLLECTIONS_PATH: ${MOLECULE_SCENARIO_DIRECTORY}/../../../../../../:~/.ansible/collections
lint: |
set -e
yamllint .
ansible-lint .