Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/f5/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyc

�
�Udac@`s#ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZydddlm
Z
dd
lmZddlmZddlmZddlmZddlmZWnqek
r9ddlm
Z
dd
lmZddlmZddlmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZ d efd!��YZ!d"efd#��YZ"d$�Z#e$d%kre#�nd&S('i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysm
---
module: bigip_gtm_global
short_description: Manages global GTM settings
description:
  - Manages global GTM settings. These settings include general, load balancing, and metrics
    related settings.
version_added: 2.6
options:
  synchronization:
    description:
      - Specifies whether this system is a member of a synchronization group.
      - When you enable synchronization, the system periodically queries other systems in
        the synchronization group to obtain and distribute configuration and metrics collection
        updates.
      - The synchronization group may contain systems configured as Global Traffic Manager and
        Link Controller systems.
    type: bool
  synchronization_group_name:
    description:
      - Specifies the name of the synchronization group to which the system belongs.
    type: str
  synchronize_zone_files:
    description:
      - Specifies that the system synchronizes Domain Name System (DNS) zone files among the
        synchronization group members.
    type: bool
extends_documentation_fragment: f5
author:
  - Tim Rupp (@caphrim007)
  - Wojciech Wypior (@wojtek0806)
s#
- name: Configure synchronization settings
  bigip_gtm_global:
    synchronization: yes
    synchronization_group_name: my-group
    synchronize_zone_files: yes
    state: present
    provider:
      user: admin
      password: secret
      server: lb.mydomain.com
  delegate_to: localhost
s�
synchronization:
  description: The synchronization setting on the system.
  returned: changed
  type: bool
  sample: true
synchronization_group_name:
  description: The synchronization group name.
  returned: changed
  type: str
  sample: my-group
synchronize_zone_files:
  description: Whether or not the system will sync zone files.
  returned: changed
  type: str
  sample: my-group
(t
AnsibleModule(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tfq_name(tf5_argument_spec(tmodule_provisionedt
ParameterscB`sIeZidd6dd6ZdddgZdddgZdddgZRS(tsynchronization_group_nametsynchronizationGroupNametsynchronize_zone_filestsynchronizeZoneFilestsynchronization(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatables(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRbs
t
ApiParameterscB`s5eZed��Zed��Zed��ZRS(cC`s6|jddkrdS|jddkr.tStSdS(NRtno(t_valuestNonetFalsetTrue(tself((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRvs
cC`s6|jddkrdS|jddkr.tStSdS(NRR(RRRR (R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRs
cC`s(|jddkrdSt|jd�S(NR(RRtstr(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR�s(RRtpropertyRRR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRus		tModuleParameterscB`seZRS((RR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR$�stChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(Rtgetattrt_filter_paramst	Exception(R!tresultt
returnable((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt	to_return�s
(RRR+(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR%�st
UsableChangescB`s&eZed��Zed��ZRS(cC`s6|jddkrdS|jdtkr.dSdSdS(NRRtyes(RRR(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR�s
cC`s6|jddkrdS|jdtkr.dSdSdS(NRRR-(RRR(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR�s
(RRR#RR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR,�s	tReportableChangescB`seZRS((RR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR.�st
DifferencecB`s5eZdd�Zd�Zd�Zed��ZRS(cC`s||_||_dS(N(twantthave(R!R0R1((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt__init__�s	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(R&tAttributeErrort_Difference__default(R!tparamR)((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pytcompare�s

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(R&R0R1R3(R!R5tattr1tattr2((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt	__default�s
cC`sd|jjdkrdS|jjdkr>|jjdkr>dS|jj|jjkr`|jjSdS(Nt(R0RRR1(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR�s$N(RRRR2R6R4R#R(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR/�s			t
ModuleManagercB`sYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(tgetRR<R	R=tclientR$R0RR1R,tchanges(R!targstkwargs((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR2�s
cC`s�t|j|j�}tj}t�}xX|D]P}|j|�}|dkrUq.q.t|t�rt|j	|�q.|||<q.W|r�t
d|�|_tSt
S(NR=(R/R0R1RRtdictR6Rt
isinstancetupdateR,R@R R(R!tdiffRtchangedtktchange((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt_update_changed_options�s		
cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopR?R<t	deprecate(R!R)twarningstwarning((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt_announce_deprecations�s


cC`s�t|jd�s!td��nt�}|j�}td|jj��}|j�}|j|�|jtd|��|j	|�|S(Ntgtms+GTM must be provisioned to use this module.R=RG(
RR?R
RCtpresentR.R@R+RERR(R!R)RGt
reportableR@((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pytexec_module�s	

cC`s
|j�S(N(RE(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRTscC`s=|j�|_|j�stS|jjr/tS|j�tS(N(tread_current_from_deviceR1t
should_updateRR<t
check_modeR tupdate_on_device(R!((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyREs
cC`s|j�}|rtStS(N(RJR R(R!R)((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRXscC`s�|jj�}dj|jjd|jjd�}|jjj|d|�}y|j�}Wn%tk
r�}t	t
|���nXd|kr�|ddkr�d|kr�t	|d��q�t	|j��ndS(Ns4https://{0}:{1}/mgmt/tm/gtm/global-settings/general/tservertserver_porttjsontcodei�tmessage(R@t
api_paramstformatR?tprovidertapitpatchR]t
ValueErrorR
R"tcontent(R!R=turitresptresponsetex((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRZs
cC`s�dj|jjd|jjd�}|jjj|�}y|j�}Wn%tk
rr}tt|���nXd|kr�|ddkr�d|kr�t|d��q�t|j	��nt
d|�S(Ns4https://{0}:{1}/mgmt/tm/gtm/global-settings/general/R[R\R^i�R_R=(RaR?RbRcR>R]ReR
R"RfR(R!RgRhRiRj((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRW,s
(RRR2RJRRRVRTRERXRZRW(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR;�s									tArgumentSpeccB`seZd�ZRS(c	C`sft|_tdtdd�dt�dtdd��}i|_|jjt�|jj|�dS(NRttypetboolRR(R tsupports_check_modeRCt
argument_specRER
(R!Ro((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyR2@s			(RRR2(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyRk?scC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NRoRnR<RL(
RkRRoRnR;RVt	exit_jsonR
t	fail_jsonR"(tspecR<tmmtresultsRj((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pytmainLs		t__main__N(%t
__future__RRRRlt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt%library.module_utils.network.f5.bigipR	t&library.module_utils.network.f5.commonR
RRR
t(library.module_utils.network.f5.icontrolRtImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commont(ansible.module_utils.network.f5.icontrolRRR$R%R,R.tobjectR/R;RkRuR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_gtm_global.pyt<module>sD


!
i
	

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