From 418da7b529643792d52e25fd8b96a85c0777dc8b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jul 2015 15:30:44 -0400 Subject: [PATCH] rgw: enable appropriate ceph-radosgw@ if systemd Note that this still doesn't work quite right... perhaps the pass in init is not systemd? Signed-off-by: Sage Weil --- ceph_deploy/rgw.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/rgw.py b/ceph_deploy/rgw.py index 73cd748..b4e9c57 100644 --- a/ceph_deploy/rgw.py +++ b/ceph_deploy/rgw.py @@ -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) -- 2.47.3