�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
d
e f d � � YZ d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysG
---
module: netapp_e_hostgroup
version_added: "2.2"
short_description: NetApp E-Series manage array host groups
author:
- Kevin Hulquest (@hulquest)
- Nathan Swartz (@ndswartz)
description: Create, update or destroy host groups on a NetApp E-Series storage array.
extends_documentation_fragment:
- netapp.eseries
options:
state:
required: true
description:
- Whether the specified host group should exist or not.
choices: ["present", "absent"]
name:
required: false
description:
- Name of the host group to manage
- This option is mutually exclusive with I(id).
new_name:
required: false
description:
- Specify this when you need to update the name of a host group
id:
required: false
description:
- Host reference identifier for the host group to manage.
- This option is mutually exclusive with I(name).
hosts:
required: false
description:
- List of host names/labels to add to the group
s3
- name: Configure Hostgroup
netapp_e_hostgroup:
ssid: "{{ ssid }}"
api_url: "{{ netapp_api_url }}"
api_username: "{{ netapp_api_username }}"
api_password: "{{ netapp_api_password }}"
validate_certs: "{{ netapp_api_validate_certs }}"
state: present
s
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: 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: bool
sample: false
hosts:
description: A list of the hosts that are part of the host group after all operations.
returned: always except when state is absent
type: list
sample: ["HostA","HostB"]
id:
description: The id number of the hostgroup
returned: always except when state is absent
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: bool
sample: false
label:
description: The user-assigned, descriptive label string for the cluster.
returned: always
type: str
sample: "MyHostGroup"
name:
description: same as label
returned: always except when state is absent
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: bool
sample: true
( t NetAppESeriesModule( t to_nativet NetAppESeriesHostGroupc B` s} e Z d Z d Z d � Z e d � � Z e d � � Z e d � � Z d d � Z
e d � Z d � Z
d � Z d
� Z RS( i
i c C` s d } t d t d t d d d g d d � d t d t d d � d
t d t d d � d t d t d d � d t d t d d
� � } d d g g } t t | � j d | d | d t d | � | j j } | d | _ | d | _ | d
| _
| d | _ | d | _ d | _ d S( Ns 02.00.0000.0000t statet requiredt choicest presentt absentt typet strt namet new_namet idt hostst listt ansible_optionst web_services_versiont supports_check_modet mutually_exclusive( t dictt Truet Falset superR
t __init__t modulet paramsR R R R t
hosts_listt Nonet current_host_group( t selft versionR R t args( ( sU /usr/lib/python2.7/site-packages/ansible/modules/storage/netapp/netapp_e_hostgroup.pyR s s&