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_phonehome.pyc

�
�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_phonehome
version_added: '2.9'
short_description: Enable or Disable Pure Storage FlashArray Phonehome
description:
- Enable or Disable Phonehome for a Pure Storage FlashArray.
author:
- Pure Storage Ansible Team (@sdodsley) <[email protected]>
options:
  state:
    description:
    - Define state of phonehome
    type: str
    default: present
    choices: [ present, absent ]
extends_documentation_fragment:
- purestorage.fa
s
- name: Enable Phonehome
  purefa_phonehome:
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

- name: Disable Phonehome
  purefa_phonehome:
    state: disable
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
t
(t
AnsibleModule(t
get_systemtpurefa_argument_speccC`swt}|j�ddkrcy |js5|j�nt}Wqctk
r_|jdd�qcXn|jd|�dS(sEnable Remote Assistt	phonehometenabledtmsgsEnabling Phonehome failedtchangedN(tFalset
get_phonehomet
check_modetenable_phonehometTruet	Exceptiont	fail_jsont	exit_json(tmoduletarrayR((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_phonehome.pyt	enable_ph6s	


cC`swt}|j�ddkrcy |js5|j�nt}Wqctk
r_|jdd�qcXn|jd|�dS(sDisable Remote AssistRR
RsDisabling Remote Assist failedRN(RRRtdisable_phonehomeRRRR(RRR((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_phonehome.pyt
disable_phCs	


cC`s�t�}|jtdtdddddddg���t|dt�}t|�}|jddkr{t||�n
t||�|j	d	t
�dS(
Ntstatettypetstrtdefaulttpresenttchoicestabsenttsupports_check_modeR(RtupdatetdictR	RR
tparamsRRRR(t
argument_specRR((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_phonehome.pytmainPs	%		
t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	tansible.module_utils.pureR
RRRR)t__name__(((sX/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefa_phonehome.pyt<module>s



	
	
	

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