From 4b13da7c5b1e06dfb8597f8049b35a600ca5fac0 Mon Sep 17 00:00:00 2001 From: Goldwyn Rodrigues Date: Tue, 12 May 2015 10:28:26 -0500 Subject: [PATCH] mds: enable on create with systemd Enable MDS services for distros having systemd. Signed-off-by: Goldwyn Rodrigues --- ceph_deploy/mds.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 2.47.3