]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible: Always configure graphite and carbon cache
authorBoris Ranto <branto@redhat.com>
Tue, 5 Dec 2017 11:25:33 +0000 (12:25 +0100)
committerBoris Ranto <branto@redhat.com>
Mon, 11 Dec 2017 16:59:50 +0000 (17:59 +0100)
In the meantime, we need this for event logging (alert status).

Signed-off-by: Boris Ranto <branto@redhat.com>
ansible/roles/ceph-collectd/tasks/configure_collectd.yml
ansible/roles/ceph-collectd/tasks/install_packages.yml
ansible/roles/ceph-grafana/tasks/main.yml
ansible/roles/ceph-grafana/tasks/start_services.yml

index a8e04f07bd8ea1ae2a99f7f331c19d99bd50c174..4ea7819218dfc1116431ea8448da923d6c6a1cfd 100644 (file)
@@ -30,7 +30,6 @@
     dest: "{{ collectd_conf_d }}/write_graphite.conf"
     regexp: 'Host ".*"'
     replace: "Host \"{{ groups['ceph-grafana'][0] }}\""
-  when: backend == 'graphite'
   notify: Restart collectd
 
 - name: Set cluster name in cephmetrics.conf
@@ -46,7 +45,6 @@
     regexp: 'EventURL ".*"'
     insertafter: 'ClusterName ".*"'
     line: "        EventURL \"http://{{ groups['ceph-grafana'][0] }}:{{ graphite.web_port if graphite.service == 'graphite-web' else graphite.api_port }}/events/\""
-  when: backend == 'graphite'
   notify: Restart collectd
 
 - name: Set ModulePath in cephmetrics.conf
index 2059e5eacc9bca6a529192bb94f729fd1a8b2889..1f981412bd08fe1ebaaf0d80f5dbf1aa15e906ff 100644 (file)
@@ -19,7 +19,7 @@
 
 - name: Install collectd-write_prometheus
   package:
-    name: collectd-python
+    name: collectd-write_prometheus
     state: latest
   when:
     - backend == "prometheus"
index 1706f4e328b9d1c474b43ec28a909800ec528ee0..ba0ff3fc22ead45850d56462c441913422d8869e 100644 (file)
 
 - include: configure_carbon.yml
   when:
-    - backend == "graphite"
     - not containerized_deployment
   tags:
     - carbon
 
 - include: configure_graphite.yml
   when:
-    - backend == "graphite"
     - not containerized_deployment
   tags:
     - graphite
index b2006f5d5347a1ed159d0fca49ffd164b0602e41..32dbd272a43b05d4a4281a975646fb41ef5709f8 100644 (file)
@@ -9,7 +9,6 @@
     # graphite-web is served by apache
     - "{{ graphite.apache_name[ansible_pkg_mgr] }}"
     - grafana-server
-  when: backend == "graphite"
 
 - name: Enable and start services (prometheus)
   service: