Last active
December 16, 2015 22:16
-
-
Save andrewschoen/1433d3e3e7d3dd6b2c7c to your computer and use it in GitHub Desktop.
Sensu ansible playbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugins I'm using: | |
https://github.com/sensu-plugins/sensu-plugins-load-checks | |
https://github.com/sensu-plugins/sensu-plugins-memory-checks | |
https://github.com/sensu-plugins/sensu-plugins-disk-checks | |
https://github.com/sensu-plugins/sensu-plugins-cpu-checks | |
https://github.com/sensu-plugins/sensu-plugins-rabbitmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Set the rabbitmq SSL address | |
rabbitmq_conf_ssl_listeners_address: '0.0.0.0' | |
# Set the rabbitmq vhost | |
rabbitmq_vhost_definitions: | |
- name: "{{ sensu_server_rabbitmq_vhost }}" | |
rabbitmq_users_definitions: | |
- vhost: "{{ sensu_server_rabbitmq_vhost }}" | |
user: "{{ sensu_server_rabbitmq_user }}" | |
password: "{{ sensu_server_rabbitmq_password }}" | |
sensu_server_rabbitmq_insecure: true | |
# Sensu client variable | |
sensu_client_subscription_names: | |
- test | |
# Dummy sensu_checks | |
sensu_checks: | |
test_check: | |
handler : default | |
command : "/bin/sh echo Hello World" | |
interval : 60 | |
subscribers: | |
- test | |
# Dummy sensu_handlers | |
sensu_handlers: | |
test_handler: | |
type : pipe | |
command: "echo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
user: vagrant | |
sudo: true | |
vars_files: | |
- sensu-vars.yml | |
roles: | |
- role: Mayeu.RabbitMQ | |
rabbitmq_vhost_definitions: | |
- name: sensu | |
rabbitmq_users_definitions: | |
- vhost: sensu | |
user: sensu | |
password: placeholder | |
rabbitmq_ssl: false | |
- redis | |
- Mayeu.sensu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment