]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mds: enable systemd unit file 561/head
authorSébastien Han <seb@redhat.com>
Wed, 24 Feb 2016 10:01:17 +0000 (11:01 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 24 Feb 2016 10:01:17 +0000 (11:01 +0100)
closes: #552

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mds/tasks/pre_requisite.yml

index ef05bfd691edc958f7c069921b80e797bf0cbece..9481bbb552fd405c1bfbb2e63a0f1575f028e410 100644 (file)
   changed_when: false
   when: ansible_distribution != "Ubuntu"
 
+- name: enable systemd unit file for mds instance (for or after infernalis)
+  file:
+    src: /usr/lib/systemd/system/ceph-mds@.service
+    dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
+    state: link
+  changed_when: false
+  failed_when: false
+  when:
+    ansible_distribution != "Ubuntu" and
+    is_ceph_infernalis
+
 - name: start and add that the metadata service to the init sequence (ubuntu)
   service:
     name: ceph-mds