1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloud: ovirt: 'glusterfs' as default for vfs_type

When storage type is glusterfs, the vfs_type will be glusterfs as well,
there is no need to specify it since there is no other valid value.
This commit is contained in:
Tareq Alayan 2017-01-11 16:59:00 +02:00
parent 11b2662f60
commit ebf3c41275

View file

@ -155,6 +155,15 @@ EXAMPLES = '''
lun_id: 1IET_000d0002 lun_id: 1IET_000d0002
address: 10.34.63.204 address: 10.34.63.204
# Add data glusterfs storage domain
- ovirt_storage_domains:
name: glusterfs_1
host: myhost
data_center: mydatacenter
glusterfs:
address: 10.10.10.10
path: /path/data
# Import export NFS storage domain: # Import export NFS storage domain:
- ovirt_storage_domains: - ovirt_storage_domains:
domain_function: export domain_function: export
@ -247,7 +256,7 @@ class StorageDomainModule(BaseModule):
), ),
] if storage_type in ['iscsi', 'fcp'] else None, ] if storage_type in ['iscsi', 'fcp'] else None,
mount_options=storage.get('mount_options'), mount_options=storage.get('mount_options'),
vfs_type=storage.get('vfs_type'), vfs_type='glusterfs' if storage_type in ['glusterfs'] else storage.get('vfs_type'),
address=storage.get('address'), address=storage.get('address'),
path=storage.get('path'), path=storage.get('path'),
nfs_retrans=storage.get('retrans'), nfs_retrans=storage.get('retrans'),