summaryrefslogtreecommitdiff
path: root/elk.yml
blob: 0e70a35d7a746ab18486c4e5df5fd1a7dac9ada8 (plain)
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
---
- hosts: elk
  become: yes
  vars_files:
    - ["{{secrets_dir}}/group_vars/all", "vars/empty.yml" ]
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
    - "{{secrets_dir}}/group_vars/dehydrated"
    - ["{{secrets_dir}}/group_vars/ses-proxy"]

  roles:
    - { role: docker-odp-hook, tags: [docker, odp] }
    - { role: docker-elasticsearch, tags: [docker, elk, elasticsearch] }
    - { role: docker-logstash, tags: [docker, elk, logstash] }
    - { role: dehydrated, tags: [ssl] }
    - { role: lava-elk-deps, tags: [docker, elk, lava] }
    - { role: postfix, tags: [postfix] }
    - { role: docker-elastalert, tags: [docker, elastalert] }
# potential race condition for new install.  This requires the
# index .kibitersystems to be setup and the monitoring-systems
# container to be running
    - { role: docker-heartbeat, tags: [docker, heartbeat] }
    - { role: curator, tags: [curator] }

- hosts: prometheus
  become: yes
  vars_files:
    - ["{{secrets_dir}}/group_vars/all", "vars/empty.yml" ]
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
    - ["{{secrets_dir}}/group_vars/ses-proxy"]
  roles:
     - { role: docker-prometheus, tags: [prometheus] }

- hosts: dashboard_private
  vars_files:
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
    # pull this in for access to ldap pw
    - ["{{secrets_dir}}/host_vars/elk.linaro.org", "vars/empty.yml"]
  become: yes
  roles:
    - { role: docker-kibiter, tags: [docker, elk, dashboard] }
    - { role: apache-site, src: "apache/monitoring-dashboard-private.conf", config: "{{inventory_hostname}}", tags: [apache] }
    - { role: elastalert-rules, tags: [elastalert] }

- hosts: dashboard_public
  become: yes
  gather_facts: no
  roles:
    - { role: docker-kibiter, tags: [docker, elk, dashboard] }
    - { role: apache-site, src: "apache/monitoring-dashboard-public.conf", config: "{{inventory_hostname}}", tags: [apache] }
    - { role: elastalert-rules, tags: [elastalert] }
    - { role: heartbeat-monitors, when: hb_monitors is defined, tags: [heartbeat] }