]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: systemd: add helpers for the ceph-volume systemd unit
authorAlfredo Deza <adeza@redhat.com>
Wed, 26 Jul 2017 15:34:39 +0000 (11:34 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 4 Aug 2017 14:25:58 +0000 (10:25 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/systemd/systemctl.py

index b137260ce42371497f84bd078d104e738129a160..9bb4d7d3a0e30b30c899e5c9228e653bc29cb3d3 100644 (file)
@@ -36,8 +36,13 @@ def disable_osd(id_):
     return disable(osd_unit % id_)
 
 
+def enable_volume(id_, fsid, device_type='lvm'):
+    return enable(volume_unit % (device_type, id_, fsid))
+
+
 #
 # templates
 #
 
 osd_unit = "ceph-osd@%s"
+volume_unit = "ceph-volume@%s-%s-%s"