-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensu_deploy.yml
executable file
·73 lines (69 loc) · 1.75 KB
/
sensu_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
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
---
# Installs a distributed Sensu stack
#
# Uses the following host groups for distribution of the components:
#
# - sensu_masters
# - sensu_clients
# - redis_servers
# - rabbitmq_servers
#
# Possible tags:
#
# - server
# - redis
# - rabbitmq
# - client
# - plugins
# - dashboard
#
#
# Execute with "ansible-playbook -u <login-user> -K sensu_test.yml --tags "tagname""
#
# Requires the following packages installed on the hosts:
# - ssh
# - python (or python-minimal)
# Deploys the Redis server on host group "redis_servers"
- hosts: redis_servers
become: yes
vars:
sensu_master: false
ansible_distribution: Ubuntu
dynamic_data_store: dynamic-data
static_data_store: static-data
redis_server: true
sensu_client: false
sensu_remote_plugins:
- sensu-plugins-cpu-checks
- sensu-plugins-disk-checks
- sensu-plugins-redis
roles:
- role: ansible-sensu
# Deploys the Sensu server, API and dashboard on host group "sensu_masters"
- hosts: sensu_masters
become: yes
vars:
sensu_master: true
sensu_include_dashboard: true
ansible_distribution: Ubuntu
dynamic_data_store: dynamic-data
static_data_store: static-data
sensu_remote_plugins:
- sensu-plugins-cpu-checks
- sensu-plugins-disk-checks
roles:
- role: ansible-sensu
# Deploys the RabbitMQ server on host group "rabbitmq_servers"
- hosts: rabbitmq_servers
become: yes
vars:
sensu_master: false
ansible_distribution: Ubuntu
dynamic_data_store: dynamic-data
static_data_store: static-data
rabbitmq_server: true
sensu_remote_plugins:
- sensu-plugins-cpu-checks
- sensu-plugins-disk-checks
roles:
- role: ansible-sensu