mirror of https://github.com/ceph/ceph-ansible.git
ceph-mon: Fix cluster name parameter
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 904532c5e2
)
pull/4205/head
parent
ca378f1da0
commit
5c6a9e1a96
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue