]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
rgw: enable appropriate ceph-radosgw@ if systemd
authorSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:30:44 +0000 (15:30 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 19:30:44 +0000 (15:30 -0400)
Note that this still doesn't work quite right... perhaps the pass in init
is not systemd?

Signed-off-by: Sage Weil <sage@redhat.com>
ceph_deploy/rgw.py

index 73cd748b2ed49c4ae179ab00657cf98f16529a29..b4e9c57bdc44ae6f46eb8b62e5a0c9897beef523 100644 (file)
@@ -105,10 +105,14 @@ def create_rgw(distro, name, cluster, init):
             ],
             timeout=7
         )
+    elif init == 'systemd':
+        system.enable_service(
+            distro.conn,
+            service='ceph-radosgw@{name}'.format(name=name)
+        )
 
     if distro.is_el:
-        system.enable_service(distro.conn, service="ceph-radosgw")
-
+        system.enable_service(distro.conn, service='ceph-radosgw')
 
 def rgw_create(args):
     cfg = conf.ceph.load(args)