summaryrefslogtreecommitdiffstats
path: root/src/ceph-volume/ceph_volume/devices/lvm/common.py
diff options
context:
space:
mode:
authorAlfredo Deza <adeza@redhat.com>2018-04-18 02:28:14 +0200
committerAlfredo Deza <adeza@redhat.com>2018-04-18 16:07:23 +0200
commit832da49ca8f1a57807f8a892cd734aa9b37216a6 (patch)
tree174dc1dde9e98bcbe5311d4145b67bdb9e3d9483 /src/ceph-volume/ceph_volume/devices/lvm/common.py
parentMerge pull request #21483 from yuriw/wip-yuriw-crontab (diff)
downloadceph-832da49ca8f1a57807f8a892cd734aa9b37216a6.tar.xz
ceph-832da49ca8f1a57807f8a892cd734aa9b37216a6.zip
ceph-volume lvm.common add --no-systemd flag to skip enabling/starting services
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Diffstat (limited to 'src/ceph-volume/ceph_volume/devices/lvm/common.py')
-rw-r--r--src/ceph-volume/ceph_volume/devices/lvm/common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py
index 869fcf20016..33239897211 100644
--- a/src/ceph-volume/ceph_volume/devices/lvm/common.py
+++ b/src/ceph-volume/ceph_volume/devices/lvm/common.py
@@ -111,6 +111,13 @@ def common_parser(prog, description):
help='Enable device encryption via dm-crypt',
)
+ parser.add_argument(
+ '--no-systemd',
+ dest='no_systemd',
+ action='store_true',
+ help='Skip creating and enabling systemd units and starting OSD services when activating',
+ )
+
# Do not parse args, so that consumers can do something before the args get
# parsed triggering argparse behavior
return parser