From b37b2e0be37e31cb493547402d06181188d06baf Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 24 Feb 2016 11:01:17 +0100 Subject: [PATCH] ceph-mds: enable systemd unit file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit closes: #552 Signed-off-by: Sébastien Han --- roles/ceph-mds/tasks/pre_requisite.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/ceph-mds/tasks/pre_requisite.yml b/roles/ceph-mds/tasks/pre_requisite.yml index ef05bfd69..9481bbb55 100644 --- a/roles/ceph-mds/tasks/pre_requisite.yml +++ b/roles/ceph-mds/tasks/pre_requisite.yml @@ -64,6 +64,17 @@ 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 -- 2.47.3