mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-19 03:10:22 -07:00
Tidy up validation for storage/zfs modules (#1766)
* fixed validation-modules for plugins/modules/storage/zfs/zfs.py * fixed validation-modules for plugins/modules/storage/zfs/zfs_delegate_admin.py * fixed validation-modules for plugins/modules/storage/zfs/zfs_facts.py * fixed validation-modules for plugins/modules/storage/zfs/zpool_facts.py * Tidy up validate-modules ignores for storage/zfs modules * removed ignore lines in 2.11 files as well * added changelog fragment per PR * Update changelogs/fragments/1766-zfs-fixed-sanity.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
41bc7816f3
commit
bd372939bc
8 changed files with 19 additions and 17 deletions
|
@ -32,14 +32,17 @@ options:
|
|||
- When set to C(absent), removes permissions from the specified entities, or removes all permissions if no entity params are specified.
|
||||
choices: [ absent, present ]
|
||||
default: present
|
||||
type: str
|
||||
users:
|
||||
description:
|
||||
- List of users to whom permission(s) should be granted.
|
||||
type: list
|
||||
elements: str
|
||||
groups:
|
||||
description:
|
||||
- List of groups to whom permission(s) should be granted.
|
||||
type: list
|
||||
elements: str
|
||||
everyone:
|
||||
description:
|
||||
- Apply permissions to everyone.
|
||||
|
@ -50,6 +53,7 @@ options:
|
|||
- The list of permission(s) to delegate (required if C(state) is C(present)).
|
||||
type: list
|
||||
choices: [ allow, clone, create, destroy, diff, hold, mount, promote, readonly, receive, release, rename, rollback, send, share, snapshot, unallow ]
|
||||
elements: str
|
||||
local:
|
||||
description:
|
||||
- Apply permissions to C(name) locally (C(zfs allow -l)).
|
||||
|
@ -241,10 +245,10 @@ def main():
|
|||
argument_spec=dict(
|
||||
name=dict(type='str', required=True),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
users=dict(type='list'),
|
||||
groups=dict(type='list'),
|
||||
users=dict(type='list', elements='str'),
|
||||
groups=dict(type='list', elements='str'),
|
||||
everyone=dict(type='bool', default=False),
|
||||
permissions=dict(type='list',
|
||||
permissions=dict(type='list', elements='str',
|
||||
choices=['allow', 'clone', 'create', 'destroy', 'diff', 'hold', 'mount', 'promote',
|
||||
'readonly', 'receive', 'release', 'rename', 'rollback', 'send', 'share',
|
||||
'snapshot', 'unallow']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue