From: Andrew Schoen Date: Wed, 14 Mar 2018 15:14:21 +0000 (-0500) Subject: ceph_volume: adds a state property X-Git-Tag: v3.1.0beta6~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b553a7344397daef1f4a96c9d2d5bb664dda1b07;p=ceph-ansible.git ceph_volume: adds a state property This can be either present or absent. Signed-off-by: Andrew Schoen --- diff --git a/library/ceph_volume.py b/library/ceph_volume.py index 67912f99d..cb6a37310 100644 --- a/library/ceph_volume.py +++ b/library/ceph_volume.py @@ -29,6 +29,12 @@ options: - The objectstore of the OSD, either filestore or bluestore required: true choices: ['bluestore', 'filestore'] + state: + description: + - The objectstore of the OSD, either filestore or bluestore + required: true + choices: ['present', 'absent'] + default: present data: description: - The logical volume name or device to use for the OSD data. @@ -135,6 +141,7 @@ def run_module(): module_args = dict( cluster=dict(type='str', required=False, default='ceph'), objectstore=dict(type='str', required=True), + state=dict(type='str', required=True, choices=['present', 'absent'], default='present'), data=dict(type='str', required=True), data_vg=dict(type='str', required=False), journal=dict(type='str', required=False), @@ -154,6 +161,7 @@ def run_module(): cluster = module.params['cluster'] objectstore = module.params['objectstore'] + state = module.params['state'] data = module.params['data'] data_vg = module.params.get('data_vg', None) journal = module.params.get('journal', None)