-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.yml
47 lines (42 loc) · 1.11 KB
/
deploy.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
- name: Configure and deploy Filebeat on APP servers
hosts: elk-clients
environment:
USER: "{{user}}"
GROUP: "{{group}}"
FILEBEAT_HOME: "{{filebeat_home}}"
APP_LOGS: "{{app_logs}}"
ENV: "{{env}}"
LOGSTASH_URL: "{{logstash_url}}"
ELASTICSEARCH_URL: "{{elasticsearch_url}}"
FILEBEAT_IMAGE: "{{filebeat_image}}"
DOCKER_PW: "{{lookup('env','DOCKER_PW')}}"
DOCKER_USER: "{{lookup('env' , 'DOCKER_USER')}}"
DOCKER_URL: "{{lookup('env', 'DOCKER_URL')}}"
roles:
- filebeat
tags:
- deploy-fb
- name: Configure and deploy ELK
hosts: elk
environment:
USER: "{{user}}"
GROUP: "{{group}}"
ELK_HOME: "{{elk_home}}"
ES_IMAGE: "{{es_image}}"
LS_IMAGE: "{{ls_image}}"
KB_IMAGE: "{{kb_image}}"
DOCKER_PW: "{{lookup('env','DOCKER_PW')}}"
DOCKER_USER: "{{lookup('env' , 'DOCKER_USER')}}"
DOCKER_URL: "{{lookup('env', 'DOCKER_URL')}}"
roles:
- elk
tags:
- deploy-elk
- name: Setup Curator for indices housekeeping
hosts: elk
become: yes
roles:
- geerlingguy.elasticsearch-curator
tags:
- setup-curator
- update-curator