]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: Fix cluster name parameter
authorilyashestopalov <usr.tester@yandex.ru>
Wed, 3 Jul 2019 16:58:32 +0000 (19:58 +0300)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 8 Jul 2019 13:12:37 +0000 (09:12 -0400)
The ability to add nodes with the monitor role to an existing cluster
whose name differs from the default name is fixed.

Signed-off-by: ilyashestopalov <usr.tester@yandex.ru>
(cherry picked from commit 904532c5e231a85b9cd5fe1e7f789d07cf6995a5)

roles/ceph-mon/tasks/deploy_monitors.yml

index 5a262f07f06670053e2d44b583dca2b58c001f7a..d1a7ba2bf3bc675e8f088059240b7ed21a352d9b 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - name: check if monitor initial keyring already exists
   command: >
-    {{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster ceph --name mon. -k
+    {{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} --name mon. -k
     /var/lib/ceph/mon/{{ cluster }}-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}/keyring
     auth get-key mon.
   register: initial_mon_key