]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible: Support non-default cluster name 210/head
authorBoris Ranto <branto@redhat.com>
Fri, 27 Jul 2018 23:48:19 +0000 (01:48 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 27 Jul 2018 23:48:19 +0000 (01:48 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
ansible/group_vars/all.yml.sample
ansible/roles/ceph-mgr/tasks/main.yml
ansible/roles/cephmetrics-common/defaults/main.yml

index 11820ed55a34d39336e71591df4ad1ecb3c9d65a..0358916856b9173657b22cf0e03ca2817162913d 100644 (file)
@@ -1,5 +1,7 @@
 dummy:
 
+#cluster_name: ceph
+
 #containerized: true
 
 # Set the backend options, mgr+prometheus or cephmetrics+graphite
index 0a3617f430fadc9a88efabeaecad7fb45ef19b11..172ed7d8056146b8ff75ff7fb20dbab3455ea03f 100644 (file)
@@ -25,4 +25,4 @@
   when: container_name != ""
 
 - name: Enable mgr prometheus module
-  command: "{{ mgr_prefix|default('') }} ceph mgr module enable prometheus"
+  command: "{{ mgr_prefix|default('') }} ceph --cluster {{ cluster_name }} mgr module enable prometheus"
index a7266b686eb8e6205326be156beca6994c76104e..10f7d8b82a133e30ae8c4499b6abba18f635aa5f 100644 (file)
@@ -1,5 +1,6 @@
 ---
 defaults:
+  cluster_name: ceph
   containerized: true
   backend:
     metrics: mgr  # mgr, cephmetrics