forked from UtrechtUniversity/yoda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zabbix.yml
83 lines (67 loc) · 1.93 KB
/
zabbix.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
---
# copyright Utrecht University
# This playbook provisions Yoda instance with the Zabbix agent, PostgreSQL monitoring and Zabbix user access to the database.
- hosts: localhost
gather_facts: False
pre_tasks:
- name: Verify Ansible version meets requirements
assert:
that: "ansible_version.full is version('2.9', '>=')"
msg: >
"You must update Ansible to at least 2.9 to deploy Yoda."
- hosts: all
pre_tasks:
- name: Retrieve Yoda repository branch
shell: git branch | grep \* | cut -d ' ' -f2
register: git_branch
changed_when: False
delegate_to: localhost
- name: Verify Yoda repository is on correct branch
fail:
msg: "Make sure your Yoda repository is on branch {{ yoda_version }}. (git checkout {{ yoda_version }})"
when: not ansible_check_mode and yoda_version not in git_branch.stdout and yoda_environment != "development"
- name: Provision portal server with Zabbix agent
hosts: portals
become: yes
roles:
- yoda_zabbix_portal
tags:
- portal
- name: Provision iCAT server with Zabbix agent and Yoda monitoring
hosts: icats
become: yes
roles:
- yoda_zabbix_icat
- yoda_zabbix_irodscommon
tags:
- zabbix
- name: Provision database server with Zabbix agent and PostgreSQL monitoring
hosts: databases
become: yes
roles:
- role: yoda_zabbix_database
zabbix_database_name: "{{ irods_database_name }}"
tags:
- database
- name: Provision resource server with Zabbix agent
hosts: resources
become: yes
roles:
- yoda_zabbix_irodscommon
tags:
- resource
- name: Provision public server with Zabbix agent
hosts: publics
become: yes
roles:
- yoda_zabbix_system
tags:
- public
- name: Provision external user service server with Zabbix agent
hosts: eus
become: yes
roles:
- role: yoda_zabbix_database
zabbix_database_name: "{{ eus_db_name }}"
tags:
- eus