Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/storage/purestorage/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_ra.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys,
---
module: purefa_ra
version_added: '2.8'
short_description: Enable or Disable Pure Storage FlashArray Remote Assist
description:
- Enable or Disable Remote Assist for a Pure Storage FlashArray.
author:
- Pure Storage Ansible Team (@sdodsley) <[email protected]>
options:
  state:
    description:
    - Define state of remote assist
    - When set to I(enable) the RA port can be exposed using the
      I(debug) module.
    type: str
    default: enable
    choices: [ enable, disable ]
extends_documentation_fragment:
- purestorage.fa
sY
- name: Enable Remote Assist port
  purefa_ra:
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
  register: result

- debug:
    msg: "Remote Assist: {{ result['ra_info'] }}"

- name: Disable Remote Assist port
  purefa_ra:
    state: disable
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
t
(t
AnsibleModule(t
get_systemtpurefa_argument_speccC`s�t}i}|j�ddkry6|j�}i|dd6|dd6|d<t}Wq�tk
r{|jdd�q�XnTy0|j�}i|dd6|dd6|d<Wn!tk
r�|jdd�nX|jd	|d
|�dS(sEnable Remote AssistRtenabledtnametporttfa_ratmsgsEnabling Remote Assist failedsGetting Remote Assist failedtchangedtra_infoN(tFalsetget_remote_assist_statustenable_remote_assisttTruet	Exceptiont	fail_jsont	exit_json(tmoduletarrayRtra_factstra_data((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_ra.pyt	enable_ra<s"


cC`skt}|j�ddkrWy|j�t}WqWtk
rS|jdd�qWXn|jd|�dS(sDisable Remote AssistRRRsDisabling Remote Assist failedRN(RRtdisable_remote_assistRRRR(RRR((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_ra.pyt
disable_raRs


cC`s�t�}|jtdtdddddddg���t|dt�}t|�}|jddkr{t||�n
t||�|j	d	t�dS(
Ntstatettypetstrtdefaulttenabletchoicestdisabletsupports_check_modeR(
RtupdatetdictR	RR
tparamsRR R(t
argument_specRR((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_ra.pytmain^s	%		
t__main__N(t
__future__RRRR"t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	tansible.module_utils.pureR
RRR R-t__name__(((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_ra.pyt<module>s


			

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