]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mds: fix the handler
authorSébastien Han <seb@redhat.com>
Sun, 8 May 2016 22:36:15 +0000 (00:36 +0200)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 10 May 2016 19:22:28 +0000 (14:22 -0500)
Moving the mds_name fact in the common role so the MDS can properly
be restarted.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit b3971354bf69e30fa63e400e4161f842e5d82379)

group_vars/all.sample
group_vars/common-coreoss.sample
roles/ceph-common/tasks/facts.yml
roles/ceph-mds/tasks/pre_requisite.yml

index c9034294525fbd5a92f0e8687d65628f4db6d7f4..e1324c5f70d1a56f0de2209a90a1b0d04797359b 100644 (file)
@@ -303,6 +303,7 @@ dummy:
 ## MDS options
 #
 #mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
+#mds_name: "{{ ansible_hostname }}"
 
 ## Rados Gateway options
 #
@@ -380,3 +381,4 @@ dummy:
 # by ceph.conf.j2 template. so it should always be defined
 #mon_containerized_deployment_with_kv: false
 
+
index 32ae29553386d62055e4d83f38254a62dcb15692..071f0af9e74c82368cd1cfe55df29618c2634d21 100644 (file)
@@ -14,4 +14,3 @@ dummy:
 #pypy_binary_directory: /opt/bin
 #pip_url: https://bootstrap.pypa.io/get-pip.py
 #local_temp_directory: /tmp
-
index d65fa2f363ae47fbd079aa563a42f29b0773ef17..b1cd054f58b160e34088a09be2e2b6922fb7c27c 100644 (file)
 
 - set_fact:
     is_kraken={{ ceph_version | version_compare('11.0.0', '>=')  and ceph_version | version_compare('12.0.0', '<') }}
+
+- set_fact:
+    mds_name: "{{ ansible_hostname }}"
+  when: not mds_use_fqdn
+
+- set_fact:
+    mds_name: "{{ ansible_fqdn }}"
+  when: mds_use_fqdn
+
index cd16d76fa2fbe1937c271dab25c0f3ec9db447e2..4b24ea5e02ccf7175d0e52f08b86d10620acfaee 100644 (file)
@@ -1,12 +1,4 @@
 ---
-- set_fact:
-    mds_name: "{{ ansible_hostname }}"
-  when: not mds_use_fqdn
-
-- set_fact:
-    mds_name: "{{ ansible_fqdn }}"
-  when: mds_use_fqdn
-
 - name: create bootstrap-mds directory
   file:
     path: /var/lib/ceph/bootstrap-mds/