]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
mds: enable on create with systemd 288/head
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 12 May 2015 15:28:26 +0000 (10:28 -0500)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Thu, 14 May 2015 15:19:02 +0000 (10:19 -0500)
Enable MDS services for distros having systemd.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
ceph_deploy/mds.py

index 07621d24c281366f3adcd641387e10c2e4d46638..6316b5ad9eb00f6e1aa7a2db1bb92222ebc4888f 100644 (file)
@@ -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)