�
�Udac @` s� d Z 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 Z d d
l m
Z
d d l m Z d d l j j Z d d l m Z d d l m Z e j � Z d e f d � � YZ d � Z e d k r� e � n d S( s$
Element Software Configure cluster
i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys�
module: na_elementsw_cluster_config
short_description: Configure Element SW Cluster
extends_documentation_fragment:
- netapp.solidfire
version_added: '2.8'
author: NetApp Ansible Team (@carchi8py) <[email protected]>
description:
- Configure Element Software cluster.
options:
modify_cluster_full_threshold:
description:
- The capacity level at which the cluster generates an event
- Requires a stage3_block_threshold_percent or
- max_metadata_over_provision_factor or
- stage2_aware_threshold
suboptions:
stage3_block_threshold_percent:
description:
- The percentage below the "Error" threshold that triggers a cluster "Warning" alert
max_metadata_over_provision_factor:
description:
- The number of times metadata space can be overprovisioned relative to the amount of space available
stage2_aware_threshold:
description:
- The number of nodes of capacity remaining in the cluster before the system triggers a notification
encryption_at_rest:
description:
- enable or disable the Advanced Encryption Standard (AES) 256-bit encryption at rest on the cluster
choices: ['present', 'absent']
set_ntp_info:
description:
- configure NTP on cluster node
- Requires a list of one or more ntp_servers
suboptions:
ntp_servers:
description:
- list of NTP servers to add to each nodes NTP configuration
broadcastclient:
type: bool
default: False
description:
- Enables every node in the cluster as a broadcast client
enable_virtual_volumes:
type: bool
default: True
description:
- Enable the NetApp SolidFire VVols cluster feature
s9
- name: Configure cluster
tags:
- elementsw_cluster_config
na_elementsw_cluster_config:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
modify_cluster_full_threshold:
stage2_aware_threshold: 2
stage3_block_threshold_percent: 10
max_metadata_over_provision_factor: 2
encryption_at_rest: absent
set_ntp_info:
broadcastclient: False
ntp_servers:
- 1.1.1.1
- 2.2.2.2
enable_virtual_volumes: True
sM
msg:
description: Success message
returned: success
type: str
N( t
AnsibleModule( t to_native( t NaElementSWModule( t NetAppModulet ElementSWClusterConfigc B` s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z
d d � Z d � Z d d d d
� Z
d � Z RS(
s7
Element Software Configure Element SW Cluster
c C` se t j � | _ | j j t d t d d d t d t d d d d � d t d d d d � d t d d d d � � � d
t d d d d
d g � d t d d d t d t d d d t � d t d d � � � d t d d d t � � � t d | j d t � | _ t
� | _ | j j | j j
� | _ t t k rI| j j d d � n t j d | j � | _ d S( Nt modify_cluster_full_thresholdt typet dictt optionst stage2_aware_thresholdt intt defaultt stage3_block_threshold_percentt"