mirror of https://github.com/ceph/ceph-ansible.git
ceph_volume: adds a state property
This can be either present or absent. Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/2233/merge
parent
796caf7d8d
commit
b553a73443
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue