|
|
@ -1,52 +1,84 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
# (c) 2018, Sumit Kumar <sumit4@netapp.com>, chris Archibald <carchi@netapp.com>
|
|
|
|
# Copyright: (c) 2018, Sumit Kumar <sumit4@netapp.com>, chris Archibald <carchi@netapp.com>
|
|
|
|
#
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# This file is part of Ansible
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is free software: you can redistribute it and/or modify
|
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is distributed in the hope that it will be useful,
|
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
class ModuleDocFragment(object):
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = r'''
|
|
|
|
DOCUMENTATION = """
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
- See respective platform section for more details
|
|
|
|
- See respective platform section for more details
|
|
|
|
requirements:
|
|
|
|
requirements:
|
|
|
|
- See respective platform section for more details
|
|
|
|
- See respective platform section for more details
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- Ansible modules are available for the following NetApp Storage Platforms: E-Series, ONTAP, SolidFire
|
|
|
|
- Ansible modules are available for the following NetApp Storage Platforms: E-Series, ONTAP, SolidFire
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Documentation fragment for Cloud Volume Services on Azure NetApp (azure_rm_netapp)
|
|
|
|
|
|
|
|
AZURE_RM_NETAPP = """
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
|
|
|
resource_group:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Name of the resource group.
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
|
|
|
|
- python >= 2.7
|
|
|
|
|
|
|
|
- azure >= 2.0.0
|
|
|
|
|
|
|
|
- Python netapp-mgmt. Install using 'pip install netapp-mgmt'
|
|
|
|
|
|
|
|
- Python netapp-mgmt-netapp. Install using 'pip install netapp-mgmt-netapp'
|
|
|
|
|
|
|
|
- For authentication with Azure NetApp log in before you run your tasks or playbook with C(az login).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
notes:
|
|
|
|
|
|
|
|
- The modules prefixed with azure_rm_netapp are built to support the Cloud Volume Services for Azure NetApp Files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
seealso:
|
|
|
|
|
|
|
|
- name: Sign in with Azure CLI
|
|
|
|
|
|
|
|
link: https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli?view=azure-cli-latest
|
|
|
|
|
|
|
|
description: How to authenticate using the C(az login) command.
|
|
|
|
|
|
|
|
"""
|
|
|
|
# Documentation fragment for ONTAP (na_ontap)
|
|
|
|
# Documentation fragment for ONTAP (na_ontap)
|
|
|
|
NA_ONTAP = r'''
|
|
|
|
NA_ONTAP = """
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
hostname:
|
|
|
|
hostname:
|
|
|
|
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The hostname or IP address of the ONTAP instance.
|
|
|
|
- The hostname or IP address of the ONTAP instance.
|
|
|
|
type: str
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
username:
|
|
|
|
username:
|
|
|
|
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- This can be a Cluster-scoped or SVM-scoped account, depending on whether a Cluster-level or SVM-level API is required.
|
|
|
|
- This can be a Cluster-scoped or SVM-scoped account, depending on whether a Cluster-level or SVM-level API is required.
|
|
|
|
For more information, please read the documentation U(https://mysupport.netapp.com/NOW/download/software/nmsdk/9.4/).
|
|
|
|
For more information, please read the documentation U(https://mysupport.netapp.com/NOW/download/software/nmsdk/9.4/).
|
|
|
|
type: str
|
|
|
|
aliases: ['user']
|
|
|
|
required: true
|
|
|
|
|
|
|
|
aliases: [ user ]
|
|
|
|
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Password for the specified user.
|
|
|
|
- Password for the specified user.
|
|
|
|
type: str
|
|
|
|
aliases: ['pass']
|
|
|
|
required: true
|
|
|
|
|
|
|
|
aliases: [ pass ]
|
|
|
|
|
|
|
|
https:
|
|
|
|
https:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Enable and disable https
|
|
|
|
- Enable and disable https
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
default: no
|
|
|
|
default: false
|
|
|
|
validate_certs:
|
|
|
|
validate_certs:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If set to C(no), the SSL certificates will not be validated.
|
|
|
|
- If set to C(False), the SSL certificates will not be validated.
|
|
|
|
- This should only set to C(False) used on personally controlled sites using self-signed certificates.
|
|
|
|
- This should only set to C(False) used on personally controlled sites using self-signed certificates.
|
|
|
|
|
|
|
|
default: true
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
default: yes
|
|
|
|
|
|
|
|
http_port:
|
|
|
|
http_port:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Override the default port (80 or 443) with this port
|
|
|
|
- Override the default port (80 or 443) with this port
|
|
|
@ -55,6 +87,14 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The ontap api version to use
|
|
|
|
- The ontap api version to use
|
|
|
|
type: int
|
|
|
|
type: int
|
|
|
|
|
|
|
|
use_rest:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- REST API if supported by the target system for all the resources and attributes the module requires. Otherwise will revert to ZAPI.
|
|
|
|
|
|
|
|
- Always -- will always use the REST API
|
|
|
|
|
|
|
|
- Never -- will always use the ZAPI
|
|
|
|
|
|
|
|
- Auto -- will try to use the REST Api
|
|
|
|
|
|
|
|
default: Auto
|
|
|
|
|
|
|
|
choices: ['Never', 'Always', 'Auto']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
requirements:
|
|
|
@ -67,10 +107,10 @@ requirements:
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- The modules prefixed with na\\_ontap are built to support the ONTAP storage platform.
|
|
|
|
- The modules prefixed with na\\_ontap are built to support the ONTAP storage platform.
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
# Documentation fragment for ONTAP (na_cdot)
|
|
|
|
# Documentation fragment for ONTAP (na_cdot)
|
|
|
|
ONTAP = r'''
|
|
|
|
ONTAP = """
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
hostname:
|
|
|
|
hostname:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
@ -95,10 +135,10 @@ requirements:
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- The modules prefixed with na\\_cdot are built to support the ONTAP storage platform.
|
|
|
|
- The modules prefixed with na\\_cdot are built to support the ONTAP storage platform.
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
# Documentation fragment for SolidFire
|
|
|
|
# Documentation fragment for SolidFire
|
|
|
|
SOLIDFIRE = r'''
|
|
|
|
SOLIDFIRE = """
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
hostname:
|
|
|
|
hostname:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
@ -123,10 +163,10 @@ requirements:
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- The modules prefixed with na\\_elementsw are built to support the SolidFire storage platform.
|
|
|
|
- The modules prefixed with na\\_elementsw are built to support the SolidFire storage platform.
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
# Documentation fragment for E-Series
|
|
|
|
# Documentation fragment for E-Series
|
|
|
|
ESERIES = r'''
|
|
|
|
ESERIES = """
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
api_username:
|
|
|
|
api_username:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
@ -140,7 +180,8 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The url to the SANtricity Web Services Proxy or Embedded Web Services API.
|
|
|
|
- The url to the SANtricity Web Services Proxy or Embedded Web Services API.
|
|
|
|
Example https://prod-1.wahoo.acme.com/devmgr/v2
|
|
|
|
example:
|
|
|
|
|
|
|
|
- https://prod-1.wahoo.acme.com/devmgr/v2
|
|
|
|
validate_certs:
|
|
|
|
validate_certs:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
@ -148,8 +189,7 @@ options:
|
|
|
|
- Should https certificates be validated?
|
|
|
|
- Should https certificates be validated?
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
ssid:
|
|
|
|
ssid:
|
|
|
|
required: false
|
|
|
|
required: true
|
|
|
|
default: 1
|
|
|
|
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The ID of the array to manage. This value must be unique for each array.
|
|
|
|
- The ID of the array to manage. This value must be unique for each array.
|
|
|
|
|
|
|
|
|
|
|
@ -158,4 +198,4 @@ notes:
|
|
|
|
the storage-system, or an E-Series storage-system that supports the Embedded Web Services API.
|
|
|
|
the storage-system, or an E-Series storage-system that supports the Embedded Web Services API.
|
|
|
|
- Embedded Web Services is currently available on the E2800, E5700, EF570, and newer hardware models.
|
|
|
|
- Embedded Web Services is currently available on the E2800, E5700, EF570, and newer hardware models.
|
|
|
|
- M(netapp_e_storage_system) may be utilized for configuring the systems managed by a WSP instance.
|
|
|
|
- M(netapp_e_storage_system) may be utilized for configuring the systems managed by a WSP instance.
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|