]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
use monitor name, not host ansible host in ceph.conf 1202/head
authortynorth-cisco <tynorth@cisco.com>
Mon, 19 Dec 2016 20:32:18 +0000 (12:32 -0800)
committertynorth-cisco <tynorth@cisco.com>
Mon, 19 Dec 2016 20:33:38 +0000 (12:33 -0800)
in ceph-common there is a fact check for monitor name
that will set it to ansible_host or ansible_fqdn

roles/ceph-mon/tasks/start_monitor.yml

index 17b02490a5af656dd2b2ba151f27b5d0d1194312..2ad23185fb5822af0c54919bf08b70a2fcace187 100644 (file)
@@ -25,9 +25,9 @@
 - name: add mon section into ceph.conf for systemv init scripts
   ini_file:
     dest: /etc/ceph/{{ cluster }}.conf
-    section: mon.{{ ansible_host }}
+    section: mon.{{ monitor_name }}
     option: host
-    value: "{{ ansible_host }}"
+    value: "{{ monitor_name }}"
     state: present
   when:
     - ansible_os_family != "Ubuntu"