-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.yml
62 lines (55 loc) · 1.42 KB
/
vars.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
---
container_fail:
error_at_launch: false
_container_defaults: &CONTAINER_DEFAULTS
restart_policy: always
# labels:
# watchdog: "false"
# log_options:
# labels: "service"
# max-size: "1m"
# max-file: "2"
_images:
image_1: "busybox:latest"
image_2: "busybox:latest"
image_3: "hello-world:latest"
image_4: "busybox:latest"
image_5: "busybox:latest"
container: "{{
container_1 |
union(container_2 | default([])) |
union(container_3 | default([])) |
union(container_4 | default([])) |
union(container_5 | default([])) }}"
container_1:
- name: busybox-1
hostname: busybox-1
image: "{{ _images.image_1 }}"
property_files:
- name: publisher.properties
properties:
replicator.user: 'replicator'
replicator.password: 'replicator'
replicator.domain: 'localhost'
replicator.tmp_dir: 'var/tmp'
- name: database.properties
properties:
publisher.maxRecursionDepth: 200
replicator.tmp_dir: 'var/tmp'
environments:
VIRTUAL_HOST: busybox-1.local
TEST_WORF: true
DBA_HOST: database
DBA_USER: username
container_3:
- name: hello-world-1
<<: *CONTAINER_DEFAULTS
# state: stopped
hostname: hello-world-1
image: "{{ _images.image_3 }}"
properties:
publisher.enabled: false
replicator.tmp_dir: '/tmp/hello-world-1'
environments:
VIRTUAL_HOST: hello-world-1.local
...