]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
adds a play for configuring sensu clients
authorAndrew Schoen <aschoen@redhat.com>
Mon, 4 Jan 2016 16:38:21 +0000 (10:38 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 4 Jan 2016 20:44:52 +0000 (14:44 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ansible/sensu.yml

index d379d873b139fb58205fdc4653ca5236a941814b..8559861c81ac27313a39098bc67766d3c40d8a08 100644 (file)
@@ -3,7 +3,7 @@
 #
 #     ansible-galaxy install -r sensu-requirements.yml
 #
-- hosts: all
+- hosts: sensu-server
   sudo: true
   vars_files:
     - sensu-vars.yml
           password: secret
           # we need to escape the / in /sensu
           vhost: "%2Fsensu"
+
+- hosts: sensu-clients
+  sudo: true
+  vars_files:
+    - sensu-vars.yml
+  roles:
+    - role: Mayeu.sensu
+      sensu_server_rabbitmq_hostname: "{{ rabbitmq_client_address|mandatory }}"
+      sensu_server_rabbitmq_port: 5672
+      sensu_server_rabbitmq_password: secret
+      sensu_install_server: false
+      sensu_install_uchiwa: false
+      # sensu_client_subscription_names need to be defined in a hosts_var file
+      # relative to your inventory