mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
udm_share: fix sanity checks (#5557)
* udm_share: fix sanity checks * add changelog fragment
This commit is contained in:
parent
911769d2f3
commit
a3b748a15e
7 changed files with 12 additions and 5 deletions
2
changelogs/fragments/5557-udm-share-sanity.yml
Normal file
2
changelogs/fragments/5557-udm-share-sanity.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- udm_share - added ``elements`` attribute to ``list`` type parameters (https://github.com/ansible-collections/community.general/pull/5557).
|
|
@ -125,6 +125,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Option name in smb.conf and its value.
|
- Option name in smb.conf and its value.
|
||||||
type: list
|
type: list
|
||||||
|
elements: dict
|
||||||
aliases: [ samba_custom_settings ]
|
aliases: [ samba_custom_settings ]
|
||||||
sambaDirectoryMode:
|
sambaDirectoryMode:
|
||||||
default: '0755'
|
default: '0755'
|
||||||
|
@ -200,12 +201,14 @@ options:
|
||||||
description:
|
description:
|
||||||
- Allowed host/network.
|
- Allowed host/network.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
aliases: [ samba_hosts_allow ]
|
aliases: [ samba_hosts_allow ]
|
||||||
sambaHostsDeny:
|
sambaHostsDeny:
|
||||||
default: []
|
default: []
|
||||||
description:
|
description:
|
||||||
- Denied host/network.
|
- Denied host/network.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
aliases: [ samba_hosts_deny ]
|
aliases: [ samba_hosts_deny ]
|
||||||
sambaInheritAcls:
|
sambaInheritAcls:
|
||||||
default: true
|
default: true
|
||||||
|
@ -314,11 +317,13 @@ options:
|
||||||
description:
|
description:
|
||||||
- Only allow access for this host, IP address or network.
|
- Only allow access for this host, IP address or network.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
nfsCustomSettings:
|
nfsCustomSettings:
|
||||||
default: []
|
default: []
|
||||||
description:
|
description:
|
||||||
- Option name in exports file.
|
- Option name in exports file.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
aliases: [ nfs_custom_settings ]
|
aliases: [ nfs_custom_settings ]
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -382,6 +387,7 @@ def main():
|
||||||
aliases=['samba_csc_policy'],
|
aliases=['samba_csc_policy'],
|
||||||
default='manual'),
|
default='manual'),
|
||||||
sambaCustomSettings=dict(type='list',
|
sambaCustomSettings=dict(type='list',
|
||||||
|
elements='dict',
|
||||||
aliases=['samba_custom_settings'],
|
aliases=['samba_custom_settings'],
|
||||||
default=[]),
|
default=[]),
|
||||||
sambaDirectoryMode=dict(type='str',
|
sambaDirectoryMode=dict(type='str',
|
||||||
|
@ -418,9 +424,11 @@ def main():
|
||||||
aliases=['samba_hide_unreadable'],
|
aliases=['samba_hide_unreadable'],
|
||||||
default=False),
|
default=False),
|
||||||
sambaHostsAllow=dict(type='list',
|
sambaHostsAllow=dict(type='list',
|
||||||
|
elements='str',
|
||||||
aliases=['samba_hosts_allow'],
|
aliases=['samba_hosts_allow'],
|
||||||
default=[]),
|
default=[]),
|
||||||
sambaHostsDeny=dict(type='list',
|
sambaHostsDeny=dict(type='list',
|
||||||
|
elements='str',
|
||||||
aliases=['samba_hosts_deny'],
|
aliases=['samba_hosts_deny'],
|
||||||
default=[]),
|
default=[]),
|
||||||
sambaInheritAcls=dict(type='bool',
|
sambaInheritAcls=dict(type='bool',
|
||||||
|
@ -474,8 +482,10 @@ def main():
|
||||||
aliases=['samba_writeable'],
|
aliases=['samba_writeable'],
|
||||||
default=True),
|
default=True),
|
||||||
nfs_hosts=dict(type='list',
|
nfs_hosts=dict(type='list',
|
||||||
|
elements='str',
|
||||||
default=[]),
|
default=[]),
|
||||||
nfsCustomSettings=dict(type='list',
|
nfsCustomSettings=dict(type='list',
|
||||||
|
elements='str',
|
||||||
aliases=['nfs_custom_settings'],
|
aliases=['nfs_custom_settings'],
|
||||||
default=[]),
|
default=[]),
|
||||||
state=dict(default='present',
|
state=dict(default='present',
|
||||||
|
|
|
@ -25,7 +25,6 @@ plugins/modules/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/rax.py use-argspec-type-path # fix needed
|
plugins/modules/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
||||||
plugins/modules/yarn.py use-argspec-type-path
|
plugins/modules/yarn.py use-argspec-type-path
|
||||||
tests/integration/targets/django_manage/files/base_test/simple_project/p1/manage.py compile-2.6 # django generated code
|
tests/integration/targets/django_manage/files/base_test/simple_project/p1/manage.py compile-2.6 # django generated code
|
||||||
|
|
|
@ -20,6 +20,5 @@ plugins/modules/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/rax.py use-argspec-type-path # fix needed
|
plugins/modules/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
||||||
plugins/modules/yarn.py use-argspec-type-path
|
plugins/modules/yarn.py use-argspec-type-path
|
||||||
|
|
|
@ -20,6 +20,5 @@ plugins/modules/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/rax.py use-argspec-type-path # fix needed
|
plugins/modules/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
||||||
plugins/modules/yarn.py use-argspec-type-path
|
plugins/modules/yarn.py use-argspec-type-path
|
||||||
|
|
|
@ -21,7 +21,6 @@ plugins/modules/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/rax.py use-argspec-type-path # fix needed
|
plugins/modules/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
||||||
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
||||||
plugins/modules/yarn.py use-argspec-type-path
|
plugins/modules/yarn.py use-argspec-type-path
|
||||||
|
|
|
@ -21,7 +21,6 @@ plugins/modules/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/rax.py use-argspec-type-path # fix needed
|
plugins/modules/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
||||||
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
plugins/modules/xfconf.py validate-modules:return-syntax-error
|
||||||
plugins/modules/yarn.py use-argspec-type-path
|
plugins/modules/yarn.py use-argspec-type-path
|
||||||
|
|
Loading…
Reference in a new issue