diff options
author | Alfredo Deza <adeza@redhat.com> | 2018-04-18 02:28:14 +0200 |
---|---|---|
committer | Alfredo Deza <adeza@redhat.com> | 2018-04-18 16:07:23 +0200 |
commit | 832da49ca8f1a57807f8a892cd734aa9b37216a6 (patch) | |
tree | 174dc1dde9e98bcbe5311d4145b67bdb9e3d9483 /src/ceph-volume/ceph_volume/devices/lvm/common.py | |
parent | Merge pull request #21483 from yuriw/wip-yuriw-crontab (diff) | |
download | ceph-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.py | 7 |
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 |