mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Convert to reduced list of known types (#50010)
This commit is contained in:
parent
fcd1486b51
commit
05c6ff79f9
908 changed files with 4822 additions and 4821 deletions
|
@ -104,7 +104,7 @@ RETURN = '''
|
|||
msg:
|
||||
description: module return status.
|
||||
returned: as needed
|
||||
type: string
|
||||
type: str
|
||||
sample: "domain 'domain_name' created successfully."
|
||||
'''
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ RETURN = """
|
|||
schedule_id:
|
||||
description: Schedule ID of the newly created schedule
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
"""
|
||||
import traceback
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -94,7 +94,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -115,7 +115,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -151,7 +151,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -81,7 +81,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -135,7 +135,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -74,7 +74,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
import traceback
|
||||
|
|
|
@ -175,7 +175,7 @@ RETURN = """
|
|||
schedule_id:
|
||||
description: Schedule ID of the newly created schedule
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
"""
|
||||
import traceback
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
|
|
@ -135,7 +135,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
@ -84,27 +84,27 @@ RETURN = """
|
|||
lun_node:
|
||||
description: NetApp controller that is hosting the LUN.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: node01
|
||||
lun_ostype:
|
||||
description: Specifies the OS of the host accessing the LUN.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: vmware
|
||||
lun_serial:
|
||||
description: A unique, 12-byte, ASCII string used to identify the LUN.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: 80E7/]LZp1Tt
|
||||
lun_naa_id:
|
||||
description: The Network Address Authority (NAA) identifier for the LUN.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: 600a0980383045372f5d4c5a70315474
|
||||
lun_state:
|
||||
description: Online or offline status of the LUN.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: online
|
||||
lun_size:
|
||||
description: Size of the LUN in bytes.
|
||||
|
|
|
@ -254,7 +254,7 @@ class NetAppONTAPNFS(object):
|
|||
:param:
|
||||
name : Name of the vserver
|
||||
:return: status of nfs. None if not found.
|
||||
:rtype: boolean
|
||||
:rtype: bool
|
||||
"""
|
||||
nfs_status = netapp_utils.zapi.NaElement('nfs-status')
|
||||
result = self.server.invoke_successfully(nfs_status, True)
|
||||
|
|
|
@ -98,7 +98,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The settings have been updated.
|
||||
"""
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Successful creation
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: '{"changed": true, "connectionType": "fc", "groupRef": "3700000060080E5000299C24000006E857AC7EEC", "groupState": "optimal", "id": "3700000060080E5000299C24000006E857AC7EEC", "label": "amg_made_by_ansible", "localRole": "primary", "mirrorChannelRemoteTarget": "9000000060080E5000299C24005B06E557AC7EEC", "orphanGroup": false, "recoveryPointAgeAlertThresholdMinutes": 20, "remoteRole": "secondary", "remoteTarget": {"nodeName": {"ioInterfaceType": "fc", "iscsiNodeName": null, "remoteNodeWWN": "20040080E5299F1C"}, "remoteRef": "9000000060080E5000299C24005B06E557AC7EEC", "scsiinitiatorTargetBaseProperties": {"ioInterfaceType": "fc", "iscsiinitiatorTargetBaseParameters": null}}, "remoteTargetId": "ansible2", "remoteTargetName": "Ansible2", "remoteTargetWwn": "60080E5000299F880000000056A25D56", "repositoryUtilizationWarnThreshold": 80, "roleChangeProgress": "none", "syncActivity": "idle", "syncCompletionTimeAlertThresholdMinutes": 10, "syncIntervalMinutes": 10, "worldWideName": "60080E5000299C24000006E857AC7EEC"}'
|
||||
""" # NOQA
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Failure message
|
||||
returned: failure
|
||||
type: string
|
||||
type: str
|
||||
sample: "No Async Mirror Group with the name."
|
||||
"""
|
||||
import json
|
||||
|
|
|
@ -81,7 +81,7 @@ RETURN = """
|
|||
json:
|
||||
description: The object attributes of the AMG.
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
example:
|
||||
{
|
||||
"changed": false,
|
||||
|
|
|
@ -117,7 +117,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The settings have been updated.
|
||||
asup:
|
||||
description:
|
||||
|
|
|
@ -96,7 +96,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The settings have been updated.
|
||||
"""
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ RETURN = '''
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: "Password Updated Successfully"
|
||||
'''
|
||||
import json
|
||||
|
|
|
@ -61,7 +61,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Gathered facts for <StorageArrayId>.
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
"""
|
||||
import json
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: json for newly created flash cache
|
||||
"""
|
||||
import json
|
||||
|
|
|
@ -51,7 +51,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The settings have been updated.
|
||||
name:
|
||||
description:
|
||||
|
|
|
@ -128,13 +128,13 @@ msg:
|
|||
description:
|
||||
- A user-readable description of the actions performed.
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The host has been created.
|
||||
id:
|
||||
description:
|
||||
- the unique identifier of the host on the E-Series storage-system
|
||||
returned: on success when state=present
|
||||
type: string
|
||||
type: str
|
||||
sample: 00000000600A098000AAC0C3003004700AD86A52
|
||||
version_added: "2.6"
|
||||
|
||||
|
@ -142,7 +142,7 @@ ssid:
|
|||
description:
|
||||
- the unique identifer of the E-Series storage-system with the current api
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: 1
|
||||
version_added: "2.6"
|
||||
|
||||
|
@ -150,7 +150,7 @@ api_url:
|
|||
description:
|
||||
- the url of the API that this request was proccessed by
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: https://webservices.example.com:8443
|
||||
version_added: "2.6"
|
||||
|
||||
|
|
|
@ -79,13 +79,13 @@ RETURN = '''
|
|||
clusterRef:
|
||||
description: The unique identification value for this object. Other objects may use this reference value to refer to the cluster.
|
||||
returned: always except when state is absent
|
||||
type: string
|
||||
type: str
|
||||
sample: "3233343536373839303132333100000000000000"
|
||||
confirmLUNMappingCreation:
|
||||
description: If true, indicates that creation of LUN-to-volume mappings should require careful confirmation from the end-user, since such a mapping
|
||||
will alter the volume access rights of other clusters, in addition to this one.
|
||||
returned: always
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: false
|
||||
hosts:
|
||||
description: A list of the hosts that are part of the host group after all operations.
|
||||
|
@ -95,28 +95,28 @@ hosts:
|
|||
id:
|
||||
description: The id number of the hostgroup
|
||||
returned: always except when state is absent
|
||||
type: string
|
||||
type: str
|
||||
sample: "3233343536373839303132333100000000000000"
|
||||
isSAControlled:
|
||||
description: If true, indicates that I/O accesses from this cluster are subject to the storage array's default LUN-to-volume mappings. If false,
|
||||
indicates that I/O accesses from the cluster are subject to cluster-specific LUN-to-volume mappings.
|
||||
returned: always except when state is absent
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: false
|
||||
label:
|
||||
description: The user-assigned, descriptive label string for the cluster.
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample: "MyHostGroup"
|
||||
name:
|
||||
description: same as label
|
||||
returned: always except when state is absent
|
||||
type: string
|
||||
type: str
|
||||
sample: "MyHostGroup"
|
||||
protectionInformationCapableAccessMethod:
|
||||
description: This field is true if the host has a PI capable access method.
|
||||
returned: always except when state is absent
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The interface settings have been updated.
|
||||
enabled:
|
||||
description:
|
||||
|
|
|
@ -87,20 +87,20 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The iSCSI target settings have been updated.
|
||||
alias:
|
||||
description:
|
||||
- The alias assigned to the iSCSI target.
|
||||
returned: on success
|
||||
sample: myArray
|
||||
type: string
|
||||
type: str
|
||||
iqn:
|
||||
description:
|
||||
- The iqn (iSCSI Qualified Name), assigned to the iSCSI target.
|
||||
returned: on success
|
||||
sample: iqn.1992-08.com.netapp:2800.000a132000b006d2000000005a0e8f45
|
||||
type: string
|
||||
type: str
|
||||
"""
|
||||
import json
|
||||
import logging
|
||||
|
|
|
@ -142,7 +142,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The ldap settings have been updated.
|
||||
"""
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ RETURN = '''
|
|||
msg:
|
||||
description: success of the module
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample: Lun mapping is complete
|
||||
'''
|
||||
import json
|
||||
|
|
|
@ -213,7 +213,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The interface settings have been updated.
|
||||
enabled:
|
||||
description:
|
||||
|
|
|
@ -125,7 +125,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: json facts for newly created snapshot group.
|
||||
"""
|
||||
HEADERS = {
|
||||
|
|
|
@ -65,12 +65,12 @@ RETURN = """
|
|||
---
|
||||
msg:
|
||||
description: State of operation
|
||||
type: string
|
||||
type: str
|
||||
returned: always
|
||||
sample: "Created snapshot image"
|
||||
image_id:
|
||||
description: ID of snaphot image
|
||||
type: string
|
||||
type: str
|
||||
returned: state == created
|
||||
sample: "3400000060080E5000299B640063074057BC5C5E "
|
||||
"""
|
||||
|
|
|
@ -100,7 +100,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: Json facts for the volume that was created.
|
||||
"""
|
||||
HEADERS = {
|
||||
|
|
|
@ -87,7 +87,7 @@ EXAMPLES = '''
|
|||
RETURN = '''
|
||||
msg:
|
||||
description: State of request
|
||||
type: string
|
||||
type: str
|
||||
returned: always
|
||||
sample: 'Storage system removed.'
|
||||
'''
|
||||
|
|
|
@ -101,7 +101,7 @@ RETURN = '''
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: Json facts for the pool that was created.
|
||||
'''
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ RETURN = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: on success
|
||||
type: string
|
||||
type: str
|
||||
sample: The settings have been updated.
|
||||
syslog:
|
||||
description:
|
||||
|
|
|
@ -106,7 +106,7 @@ RETURN = '''
|
|||
---
|
||||
msg:
|
||||
description: State of volume
|
||||
type: string
|
||||
type: str
|
||||
returned: always
|
||||
sample: "Standard volume [workload_vol_1] has been created."
|
||||
'''
|
||||
|
|
|
@ -84,14 +84,14 @@ EXAMPLES = """
|
|||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: Json facts for the volume copy that was created.
|
||||
"""
|
||||
RETURN = """
|
||||
msg:
|
||||
description: Success message
|
||||
returned: success
|
||||
type: string
|
||||
type: str
|
||||
sample: Created Volume Copy Pair with ID
|
||||
"""
|
||||
|
||||
|
|
|
@ -76,22 +76,22 @@ RETURN = '''
|
|||
name:
|
||||
description: ZFS dataset name
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample: rpool/var/spool
|
||||
parsable:
|
||||
description: if parsable output should be provided in machine friendly format.
|
||||
returned: if 'parsable' is set to True
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: True
|
||||
recurse:
|
||||
description: if we should recurse over ZFS dataset
|
||||
returned: if 'recurse' is set to True
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: True
|
||||
zfs_datasets:
|
||||
description: ZFS dataset facts
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample:
|
||||
{
|
||||
"aclinherit": "restricted",
|
||||
|
|
|
@ -63,7 +63,7 @@ ansible_facts:
|
|||
ansible_zfs_pools:
|
||||
description: ZFS pool facts
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample:
|
||||
{
|
||||
"allocated": "3.46G",
|
||||
|
@ -109,12 +109,12 @@ ansible_facts:
|
|||
name:
|
||||
description: ZFS pool name
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
sample: rpool
|
||||
parsable:
|
||||
description: if parsable output should be provided in machine friendly format.
|
||||
returned: if 'parsable' is set to True
|
||||
type: boolean
|
||||
type: bool
|
||||
sample: True
|
||||
'''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue