-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplay.yml
More file actions
executable file
·79 lines (68 loc) · 1.94 KB
/
play.yml
File metadata and controls
executable file
·79 lines (68 loc) · 1.94 KB
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
---
- hosts: swarm-manager
tasks:
- name: "Install python3 pip"
apt:
name: python3-pip
state: present
- name: "Install docker"
pip:
name:
- docker
- jsondiff
- requests>=2.20.1
state: present
- name: Init a new swarm with default parameters
docker_swarm:
state: present
- name: Creates tracing directory
file:
path: /data/
state: directory
- name: Synchronization of Docker context
synchronize:
src: Tracing
dest: /data/
- name: Build tracing image
docker_image:
build:
path: /data/Tracing/
pull: true
name: gdata_tracing
tag: latest
source: build
force_source: true
- name: Deploy ptl stack from a compose file
docker_stack:
state: present
name: ptl
compose:
- /data/Tracing/stacks/docker-compose.ptl.yml
- name: Create config tracing-prometheus
docker_config:
name: tracing-prometheus
data: "{{ lookup('file', './Tracing/stacks/configs/prometheus.yml') | b64encode }}"
data_is_b64: true
state: present
- name: Create a tracing network
docker_network:
name: tracing
driver: overlay
- name: Deploy tracing stack from a compose file
docker_stack:
state: present
name: tracing
compose:
- /data/Tracing/stacks/docker-compose.tracing.yml
- name: Deploy worker stack from a compose file
docker_stack:
state: present
name: worker
compose:
- /data/Tracing/stacks/docker-compose.worker.yml
- name: Deploy flink stack from a compose file
docker_stack:
state: present
name: flink
compose:
- /data/Tracing/stacks/docker-compose.flink.yml