From: Goldwyn Rodrigues Date: Tue, 12 May 2015 15:28:26 +0000 (-0500) Subject: mds: enable on create with systemd X-Git-Tag: v1.5.24~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b13da7c5b1e06dfb8597f8049b35a600ca5fac0;p=ceph-deploy.git mds: enable on create with systemd Enable MDS services for distros having systemd. Signed-off-by: Goldwyn Rodrigues --- diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index 07621d2..6316b5a 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -108,6 +108,16 @@ def create_mds(distro, name, cluster, init): ], timeout=7 ) + elif init == 'systemd': + remoto.process.run( + conn, + [ + 'systemctl', + 'enable', + 'ceph-mds@{name}'.format(name=name), + ], + timeout=7 + ) if distro.is_el: system.enable_service(distro.conn)