Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Sync bitbucket and Github
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Jul 21, 2020
1 parent 2425f03 commit a2d3b96
Show file tree
Hide file tree
Showing 23 changed files with 146 additions and 98 deletions.
3 changes: 3 additions & 0 deletions ansible_collections/netapp/elementsw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Join our Slack Channel at [Netapp.io](http://netapp.io/slack)

### Module documentation changes
- use a three group format for `version_added`. So 2.7 becomes 2.7.0. Same thing for 2.8 and 2.9.
- add type: str (or int, dict) where missing in documentation section.
- add required: true where missing.
- remove required: true for state and use present as default.

## 20.6.0
### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,24 @@
state:
description:
- Whether the specified access group should exist or not.
required: true
choices: ['present', 'absent']
default: present
type: str
from_name:
description:
- ID or Name of the access group to rename.
- Required to create a new access group called 'name' by renaming 'from_name'.
version_added: 2.8.0
type: str
name:
description:
- Name for the access group for create, modify and delete operations.
required: True
aliases:
- src_access_group_id
type: str
initiators:
description:
Expand All @@ -70,10 +73,12 @@
- if account_id is digit, it will consider as account_id
- If account_id is string, it will consider as account_name
version_added: 2.8.0
type: str
virtual_network_id:
description:
- The ID of the Element SW Software Cluster Virtual Network to associate the access group with.
type: int
virtual_network_tags:
description:
Expand All @@ -83,6 +88,7 @@
attributes:
description: List of Name/Value pairs in JSON object format.
type: dict
'''

Expand Down Expand Up @@ -157,7 +163,7 @@ def __init__(self):

self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict(
state=dict(required=True, choices=['present', 'absent']),
state=dict(required=False, type='str', choices=['present', 'absent'], default='present'),
from_name=dict(required=False, type='str'),
name=dict(required=True, aliases=["src_access_group_id"], type='str'),
initiators=dict(required=False, type='list', elements='str'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
state:
description:
- Whether the specified volumes should exist or not for this access group.
required: true
choices: ['present', 'absent']
default: present
type: str
access_group:
description:
- Name or id for the access group to add volumes to, or remove volumes from
required: True
required: true
type: str
volumes:
Expand All @@ -58,6 +58,7 @@
- It accepts either account_name or account_id
- if account_id is numeric, look up for account_id first, then look up for account_name
- If account_id is not numeric, look up for account_name
required: true
type: str
'''

Expand Down Expand Up @@ -115,7 +116,7 @@ def __init__(self):

self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict(
state=dict(required=True, choices=['present', 'absent']),
state=dict(required=False, type='str', choices=['present', 'absent'], default='present'),
access_group=dict(required=True, type='str'),
volumes=dict(required=True, type='list', elements='str'),
account_id=dict(required=True, type='str'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@
state:
description:
- Whether the specified account should exist or not.
required: true
choices: ['present', 'absent']
default: present
type: str
element_username:
description:
- Unique username for this account. (May be 1 to 64 characters in length).
required: true
aliases:
- account_id
type: str
from_name:
description:
Expand All @@ -54,20 +56,24 @@
- CHAP secret to use for the initiator. Should be 12-16 characters long and impenetrable.
- The CHAP initiator secrets must be unique and cannot be the same as the target CHAP secret.
- If not specified, a random secret is created.
type: str
target_secret:
description:
- CHAP secret to use for the target (mutual CHAP authentication).
- Should be 12-16 characters long and impenetrable.
- The CHAP target secrets must be unique and cannot be the same as the initiator CHAP secret.
- If not specified, a random secret is created.
type: str
attributes:
description: List of Name/Value pairs in JSON object format.
type: dict
status:
description:
- Status of the account.
type: str
'''

Expand Down Expand Up @@ -139,11 +145,11 @@ class ElementSWAccount(object):
def __init__(self):
self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict(
state=dict(required=True, choices=['present', 'absent']),
state=dict(required=False, type='str', choices=['present', 'absent'], default='present'),
element_username=dict(required=True, aliases=["account_id"], type='str'),
from_name=dict(required=False, default=None),
initiator_secret=dict(required=False, type='str'),
target_secret=dict(required=False, type='str'),
initiator_secret=dict(required=False, type='str', no_log=True),
target_secret=dict(required=False, type='str', no_log=True),
attributes=dict(required=False, type='dict'),
status=dict(required=False, type='str'),
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@
state:
description:
- Whether the specified account should exist or not.
required: true
choices: ['present', 'absent']
default: present
type: str
element_username:
description:
- Unique username for this account. (May be 1 to 64 characters in length).
required: true
type: str
element_password:
description:
- The password for the new admin account. Setting the password attribute will always reset your password, even if the password is the same
type: str
acceptEula:
description:
Expand Down Expand Up @@ -111,7 +114,7 @@ def __init__(self):
"""
self.argument_spec = netapp_utils.ontap_sf_host_argument_spec()
self.argument_spec.update(dict(
state=dict(required=True, choices=['present', 'absent']),
state=dict(required=False, type='str', choices=['present', 'absent'], default='present'),
element_username=dict(required=True, type='str'),
element_password=dict(required=False, type='str', no_log=True),
acceptEula=dict(required=False, type='bool'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,34 @@
required: true
aliases:
- volume_id
type: str
dest_hostname:
description:
- hostname for the backup source cluster
- will be set equal to hostname if not specified
required: false
type: str
dest_username:
description:
- username for the backup destination cluster
- will be set equal to username if not specified
required: false
type: str
dest_password:
description:
- password for the backup destination cluster
- will be set equal to password if not specified
required: false
type: str
dest_volume_id:
description:
- ID of the backup destination volume
required: true
type: str
format:
description:
Expand All @@ -68,11 +73,13 @@
description:
- the backup script to be executed
required: false
type: str
script_parameters:
description:
- the backup script parameters
required: false
type: dict
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@
description:
- Skip checking connection to SVIP or MVIP.
choices: ['svip', 'mvip']
type: str
mvip:
description:
- Optionally, use to test connection of a different MVIP.
- This is not needed to test the connection to the target cluster.
type: str
svip:
description:
- Optionally, use to test connection of a different SVIP.
- This is not needed to test the connection to the target cluster.
type: str
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,22 @@
stage3_block_threshold_percent:
description:
- The percentage below the "Error" threshold that triggers a cluster "Warning" alert
type: int
max_metadata_over_provision_factor:
description:
- The number of times metadata space can be overprovisioned relative to the amount of space available
type: int
stage2_aware_threshold:
description:
- The number of nodes of capacity remaining in the cluster before the system triggers a notification
type: int
type: dict
encryption_at_rest:
description:
- enable or disable the Advanced Encryption Standard (AES) 256-bit encryption at rest on the cluster
choices: ['present', 'absent']
type: str
set_ntp_info:
description:
Expand All @@ -62,12 +65,12 @@
- list of NTP servers to add to each nodes NTP configuration
type: list
elements: str
broadcastclient:
type: bool
default: False
description:
- Enables every node in the cluster as a broadcast client
type: dict
enable_virtual_volumes:
type: bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@
description:
- Destination IP address of the cluster to be paired.
required: true
type: str
dest_username:
description:
- Destination username for the cluster to be paired.
- Optional if this is same as source cluster username.
type: str
dest_password:
description:
- Destination password for the cluster to be paired.
- Optional if this is same as source cluster password.
type: str
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
the action applies to all nodes in the cluster, and the values that are passed replace, \
in whole, all values set in any previous call to this module.
choices: ['present', 'absent']
default: 'present'
default: present
type: str
snmp_v3_enabled:
description:
Expand All @@ -53,19 +54,24 @@
- rw for read-write access.
- rosys for read-only access to a restricted set of system information.
choices: ['ro', 'rw', 'rosys']
type: str
cidr:
description:
- A CIDR network mask. This network mask must be an integer greater than or equal to 0, \
and less than or equal to 32. It must also not be equal to 31.
type: int
community:
description:
- SNMP community string.
type: str
network:
description:
- This parameter along with the cidr variable is used to control which network the access and \
community string apply to.
- The special value of 'default' is used to specify an entry that applies to all networks.
- The cidr mask is ignored when network value is either a host name or default.
type: str
type: dict
usm_users:
description:
Expand All @@ -78,24 +84,30 @@
- rwuser for read-write access.
- rosys for read-only access to a restricted set of system information.
choices: ['rouser', 'rwuser', 'rosys']
type: str
name:
description:
- The name of the user. Must contain at least one character, but no more than 32 characters.
- Blank spaces are not allowed.
type: str
password:
description:
- The password of the user. Must be between 8 and 255 characters long (inclusive).
- Blank spaces are not allowed.
- Required if 'secLevel' is 'auth' or 'priv.'
type: str
passphrase:
description:
- The passphrase of the user. Must be between 8 and 255 characters long (inclusive).
- Blank spaces are not allowed.
- Required if 'secLevel' is 'priv.'
type: str
secLevel:
description:
- To define the security level of a user.
choices: ['noauth', 'auth', 'priv']
type: str
type: dict
'''

Expand Down Expand Up @@ -177,8 +189,8 @@ def __init__(self):
options=dict(
access=dict(type='str', choices=['rouser', 'rwuser', 'rosys']),
name=dict(type='str', default=None),
password=dict(type='str', default=None),
passphrase=dict(type='str', default=None),
password=dict(type='str', default=None, no_log=True),
passphrase=dict(type='str', default=None, no_log=True),
secLevel=dict(type='str', choices=['auth', 'noauth', 'priv'])
)
),
Expand Down
Loading

0 comments on commit a2d3b96

Please sign in to comment.