From e40ad1ac1747d04fbb86ca513994c7c016b6aa5d Mon Sep 17 00:00:00 2001 From: Tareq Alayan Date: Thu, 12 Jan 2017 21:13:50 +0200 Subject: [PATCH] cloud: ovirt: add ability to override luns (#20144) Add the ability to wipe used luns when adding new iscsi storage --- lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py b/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py index 751b3311ca7..bf4a3bb2fd1 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py @@ -99,6 +99,7 @@ options: - "C(lun_id) - LUN id." - "C(username) - A CHAP user name for logging into a target." - "C(password) - A CHAP password for logging into a target." + - "C(override_luns) - If I(True) ISCSI storage domain luns will be overriden before adding." - "Note that these parameters are not idempotent." posixfs: description: @@ -255,6 +256,7 @@ class StorageDomainModule(BaseModule): password=storage.get('password'), ), ] if storage_type in ['iscsi', 'fcp'] else None, + override_luns=storage.get('override_luns'), mount_options=storage.get('mount_options'), vfs_type='glusterfs' if storage_type in ['glusterfs'] else storage.get('vfs_type'), address=storage.get('address'),