Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/storage/ibm/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/storage/ibm/ibm_sa_domain.pyc

�
�Udac@`s�ddlmZmZmZeZidgd6dd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functiontpreviewtstatust	communitytsupported_bys1.1tmetadata_versions`
---
module: ibm_sa_domain
short_description: Manages domains on IBM Spectrum Accelerate Family storage systems
version_added: "2.8"

description:
    - "This module can be used to add domains to or removes them from IBM Spectrum Accelerate Family storage systems."

options:
    domain:
        description:
            - Name of the domain to be managed.
        required: true
    state:
        description:
            - The desired state of the domain.
        required: true
        default: "present"
        choices: [ "present", "absent" ]
    ldap_id:
        description:
            - ldap id to add to the domain.
        required: false
    size:
        description:
            - Size of the domain.
        required: false
    hard_capacity:
        description:
            - Hard capacity of the domain.
        required: false
    soft_capacity:
        description:
            - Soft capacity of the domain.
        required: false
    max_cgs:
        description:
            - Number of max cgs.
        required: false
    max_dms:
        description:
            - Number of max dms.
        required: false
    max_mirrors:
        description:
            - Number of max_mirrors.
        required: false
    max_pools:
        description:
            - Number of max_pools.
        required: false
    max_volumes:
        description:
            - Number of max_volumes.
        required: false
    perf_class:
        description:
            - Add the domain to a performance class.
        required: false

extends_documentation_fragment:
    - ibm_storage

author:
    - Tzur Eliyahu (@tzure)
sO
- name: Define new domain.
  ibm_sa_domain:
    domain: domain_name
    size: domain_size
    state: present
    username: admin
    password: secret
    endpoints: hostdev-system

- name: Delete domain.
  ibm_sa_domain:
    domain: domain_name
    state: absent
    username: admin
    password: secret
    endpoints: hostdev-system
s�
msg:
    description: module return status.
    returned: as needed
    type: str
    sample: "domain 'domain_name' created successfully."
(t
AnsibleModule(texecute_pyxcli_commandtconnect_ssltspectrum_accelerate_spectis_pyxcli_installedcC`s�t�}|jtdtdddddg�dtdt�dt�d	t�d
t�dt�dt�d
t�dt�dt�dt�dt���t|�}t|�t|�}|jjd|j	d�j
}|j	d}t}dj|j	d�}|dkr9|r9t
|d|�}|d7}n;|dkrj|rjt
|d|�}|d7}n
|d7}|jd|d|�dS(Ntstatetdefaulttpresenttchoicestabsenttdomaintrequiredtsizetmax_dmstmax_cgstldap_idtmax_mirrorst	max_poolstmax_volumest
perf_classt
hard_capacityt
soft_capacitysDomain '{0}'t
domain_creates created successfully.t
domain_deletes deleted successfully.s state unchanged.tchangedtmsg(RtupdatetdicttTrueRRR
tcmdtdomain_listtparamstas_single_elementtFalsetformatR	t	exit_json(t
argument_spectmoduletxcli_clientRR
t
state_changedR!((sM/usr/lib/python2.7/site-packages/ansible/modules/storage/ibm/ibm_sa_domain.pytmaintsB										





t__main__N(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt!ansible.module_utils.ibm_sa_utilsR	R
RRR0t__name__(((sM/usr/lib/python2.7/site-packages/ansible/modules/storage/ibm/ibm_sa_domain.pyt<module>
s

D"	,

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]