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_smtp.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	e
Zyddlm
Z
Wnek
r�eZnXddlmZdd
lmZmZdZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: purefb_smtp
version_added: '2.9'
short_description: Configure SMTP for Pure Storage FlashBlade
description:
- Configure SMTP for a Pure Storage FlashBlade.
- Whilst there can be no relay host, a sender domain must be configured.
author:
- Pure Storage Ansible Team (@sdodsley) <[email protected]>
options:
  host:
    description: Relay server name
    type: str
  domain:
    description: Domain name for alert messages
    required: true
    type: str
extends_documentation_fragment:
- purestorage.fb
s�
- name: Configure SMTP settings
  purefb_smtp:
    host: hostname
    domain: xyz.com
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
t
(tSmtp(t
AnsibleModule(t	get_bladetpurefb_argument_specs1.6cC`s�t}|jss|jj�jd}|jdr�|jd|jkr�td|jd�}y|jjd|�Wqt	k
r�|j
dd�qXnd|jr|jdrtdd�}y|jjd|�Wqt	k
r�|j
dd�qXn|jd|jkrjtd	|jd�}y|jjd|�Wqpt	k
rf|j
dd
�qpXqst}n|j
d|�dS(
sConfigure SMTP settingsithostt
relay_hostt
smtp_settingstmsgs"Configuring SMTP relay host failedttdomaint
sender_domains%Configuring SMTP sender domain failedtchangedN(tTruet
check_modetsmtpt	list_smtptitemstparamsRR	tupdate_smtpt	Exceptiont	fail_jsonRtFalset	exit_json(tmoduletbladeRtcurrent_smtpR((sS/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_smtp.pytset_smtp=s.	#


	c
C`s�t�}|jtdtdd�dtdddt���t|dt�}t|�}|jj�j}t	|kr�|j
dd�nts�|j
dd	�nt||�|j
d
t�dS(NR
ttypetstrRtrequiredtsupports_check_modeRs3Purity//FB must be upgraded to support this module.s)purity_fb SDK is required for this moduleR(RtupdatetdictRR
Rtapi_versiont
list_versionstversionstMIN_REQUIRED_API_VERSIONRt
HAS_PURITY_FBR#RR(t
argument_specR R!R*((sS/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_smtp.pytmainYs			
t__main__N(t
__future__RRRR$t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNRR.t	purity_fbR	tImportErrorRtansible.module_utils.basicR
tansible.module_utils.pureRRR-R#R0t__name__(((sS/usr/lib/python2.7/site-packages/ansible/modules/storage/purestorage/purefb_smtp.pyt<module>s&


	

		

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