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/purefb_ra.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	e
Zyddlm
Z
Wnek
r�eZnXddlmZdd
lmZmZdZd�Zd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys-
---
module: purefb_ra
version_added: '2.9'
short_description: Enable or Disable Pure Storage FlashBlade Remote Assist
description:
- Enable or Disable Remote Assist for a Pure Storage FlashBlade.
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: present
    choices: [ present, absent ]
extends_documentation_fragment:
- purestorage.fb
s

- name: Enable Remote Assist port
  purefb_ra:
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6

- name: Disable Remote Assist port
  purefb_ra:
    state: absent
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
t
(tSupport(t
AnsibleModule(t	get_bladetpurefb_argument_specs1.6cC`spt}|js\tdt�}y|jjd|�Wq\tk
rX|jdd�q\Xn|jd|�dS(sEnable Remote Assisttremote_assist_activetsupporttmsgsEnabling Remote Assist failedtchangedN(tTruet
check_modeR	Rtupdate_supportt	Exceptiont	fail_jsont	exit_json(tmoduletbladeRtra_settings((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_ra.pyt	enable_raAs	
cC`spt}|js\tdt�}y|jjd|�Wq\tk
rX|jdd�q\Xn|jd|�dS(sDisable Remote AssistR
RRsDisabling Remote Assist failedRN(	RRR	tFalseRRRRR(RRRR((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_ra.pyt
disable_raMs	
cC`s/t�}|jtdtdddddddg���t|dt�}t|�}|jj�j}t	|kr�|j
d	d
�nts�|j
d	d�n|jddkr�|j
j�jdjr�t||�n<|jddkr|j
j�jdjrt||�n|jd
t�dS(Ntstatettypetstrtdefaulttpresenttchoicestabsenttsupports_check_modeRs3Purity//FB must be upgraded to support this module.s)purity_fb SDK is required for this moduleiR(RtupdatetdictR
RRtapi_versiont
list_versionstversionstMIN_REQUIRED_API_VERSIONRt
HAS_PURITY_FBtparamsRtlist_supporttitemsR
RRRR(t
argument_specRRR'((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_ra.pytmainYs 	%		-,t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNRR+t	purity_fbR	tImportErrorRtansible.module_utils.basicR
tansible.module_utils.pureRRR*RRR0t__name__(((sQ/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_ra.pyt<module>s(





			

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