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

�
�Udac@`sddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZyTddlm
Z
dd
lmZddlmZddlmZddlmZWnaek
rddlm
Z
dd
lmZddlmZddlmZddlmZnXdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd ��YZd!efd"��YZd#�Z e!d$kr�e �nd%S(&i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysv
---
module: bigip_sys_global
short_description: Manage BIG-IP global settings
description:
  - Manage BIG-IP global settings.
version_added: 2.3
options:
  banner_text:
    description:
      - Specifies the text to present in the advisory banner.
    type: str
  console_timeout:
    description:
      - Specifies the number of seconds of inactivity before the system logs
        off a user that is logged on.
    type: int
  gui_setup:
    description:
      - C(yes) or C(no) the Setup utility in the browser-based
        Configuration utility.
    type: bool
  lcd_display:
    description:
      - Specifies, when C(yes), that the system menu displays on the
        LCD screen on the front of the unit. This setting has no effect
        when used on the VE platform.
    type: bool
  mgmt_dhcp:
    description:
      - Specifies whether or not to enable DHCP client on the management
        interface
    type: bool
  net_reboot:
    description:
      - Specifies, when C(yes), that the next time you reboot the system,
        the system boots to an ISO image on the network, rather than an
        internal media drive.
    type: bool
  quiet_boot:
    description:
      - Specifies, when C(yes), that the system suppresses informational
        text on the console during the boot cycle. When C(no), the
        system presents messages and informational text on the console during
        the boot cycle.
    type: bool
  security_banner:
    description:
      - Specifies whether the system displays an advisory message on the
        login screen.
    type: bool
  state:
    description:
      - The state of the variable on the system. When C(present), guarantees
        that an existing variable is set to C(value).
    type: str
    choices:
      - present
    default: present
extends_documentation_fragment: f5
author:
  - Tim Rupp (@caphrim007)
  - Wojciech Wypior (@wojtek0806)
s�
- name: Disable the setup utility
  bigip_sys_global:
    gui_setup: no
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost
s�
banner_text:
  description: The new text to present in the advisory banner.
  returned: changed
  type: str
  sample: This is a corporate device. Do not touch.
console_timeout:
  description:
    - The new number of seconds of inactivity before the system
      logs off a user that is logged on.
  returned: changed
  type: int
  sample: 600
gui_setup:
  description: The new setting for the Setup utility.
  returned: changed
  type: bool
  sample: yes
lcd_display:
  description: The new setting for displaying the system menu on the LCD.
  returned: changed
  type: bool
  sample: yes
mgmt_dhcp:
  description: The new setting for whether the mgmt interface should DHCP or not.
  returned: changed
  type: bool
  sample: yes
net_reboot:
  description: The new setting for whether the system should boot to an ISO on the network or not.
  returned: changed
  type: bool
  sample: yes
quiet_boot:
  description:
    - The new setting for whether the system should suppress information to
      the console during boot or not.
  returned: changed
  type: bool
  sample: yes
security_banner:
  description:
    - The new setting for whether the system should display an advisory message
      on the login screen or not.
  returned: changed
  type: bool
  sample: yes
(t
AnsibleModule(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tf5_argument_spec(tflatten_booleant
ParameterscB`s�eZidd6dd6dd6dd6dd	6d
d6dd
6dd6Zddddd	dd
dgZdddddd
ddgZdddddd
ddgZed��Zed��Zed��Z	ed��Z
ed��Zed��ZRS(tsecurity_bannertguiSecurityBannertbanner_texttguiSecurityBannerTextt	gui_setuptguiSetuptlcd_displayt
lcdDisplayt	mgmt_dhcptmgmtDhcpt
net_reboott	netReboott
quiet_boott	quietBoottconsole_timeouttconsoleInactivityTimeoutcC`st|jd�S(NR(R
t_values(tself((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�s(
t__name__t
__module__tapi_maptapi_attributestreturnablest
updatablestpropertyRRRRRR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�sN
			t
ApiParameterscB`seZRS((R!R"(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR(�stModuleParameterscB`seZRS((R!R"(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR)�stChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(R%tgetattrt_filter_paramst	Exception(R tresultt
returnable((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt	to_return�s
(R!R"R0(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR*�st
UsableChangescB`sbeZed��Zed��Zed��Zed��Zed��Zed��ZRS(cC`s2|jddkrdS|jddkr.dSdS(NRtyestenabledtdisabled(RtNone(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�s
cC`s2|jddkrdS|jddkr.dSdS(NRR2R3R4(RR5(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR�s
cC`s2|jddkrdS|jddkr.dSdS(NRR2R3R4(RR5(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRs
cC`s2|jddkrdS|jddkr.dSdS(NRR2R3R4(RR5(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRs
cC`s2|jddkrdS|jddkr.dSdS(NRR2R3R4(RR5(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRs
cC`s2|jddkrdS|jddkr.dSdS(NRR2R3R4(RR5(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRs
(	R!R"R'RRRRRR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR1�stReportableChangescB`sbeZed��Zed��Zed��Zed��Zed��Zed��ZRS(cC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR)scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR-scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR1scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR5scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR9scC`st|jd�S(NR(R
R(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR=s(	R!R"R'RRRRRR(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR6(st
DifferencecB`s&eZdd�Zd�Zd�ZRS(cC`s||_||_dS(N(twantthave(R R8R9((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt__init__Cs	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_sys_global.pytcompareGs

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(R+R8R9R;(R R=R8R9((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt	__defaultNs
N(R!R"R5R:R>R<(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR7Bs	t
ModuleManagercB`sbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
cO`s^|jdd�|_t|jj�|_td|jj�|_t�|_	t
�|_dS(Ntmoduletparams(tgetR5RAR	RBtclientR)R8R(R9R1tchanges(R targstkwargs((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR:Ys
cC`sji}xBtjD]7}t|j|�dk	rt|j|�||<qqW|rftd|�|_ndS(NRB(RR%R+R8R5R1RE(R tchangedtkey((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt_set_changed_options`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(NRB(R7R8R9RR&tdictR>R5t
isinstancetupdateR1REtTruetFalse(R tdiffR&RHtktchange((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt_update_changed_optionshs		
cC`s|j�}|rtStS(N(RSRNRO(R R.((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt
should_updatezscC`smt�}|j�}td|jj��}|j�}|j|�|jtd|��|j|�|S(NRBRH(RKtpresentR6RER0RMt_announce_deprecations(R R.RHt
reportableRE((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pytexec_module�s	

cC`sH|jdg�}x/|D]'}|jjd|dd|d�qWdS(Nt
__warningstmsgtversion(tpopRAt	deprecate(R R.twarningstwarning((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRV�s


cC`s
|j�S(N(RM(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRU�scC`s=|j�|_|j�stS|jjr/tS|j�tS(N(tread_current_from_deviceR9RTRORAt
check_modeRNtupdate_on_device(R ((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRM�s
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(Ns,https://{0}:{1}/mgmt/tm/sys/global-settings/tservertserver_porttcodei�tmessageRB(tformatRDtprovidertapiRCtjsont
ValueErrorR
tstrtcontentR((R turitresptresponsetex((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR`�s
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(Ns,https://{0}:{1}/mgmt/tm/sys/global-settings/RcRdRjRei�Rf(REt
api_paramsRgRDRhRitpatchRjRkR
RlRm(R RBRnRoRpRq((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRb�s
(R!R"R:RJRSRTRXRVRURMR`Rb(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR@Xs										tArgumentSpeccB`seZd�ZRS(cC`s�t|_dg|_tdtdd�dt�dtdd�dtdd�dtdd�d	tdd�d
tdd�dtdd�d
tddddg��	}i|_|jjt�|jj|�dS(NRURttypetboolRRRRRRRtinttstatetdefaulttchoices(RNtsupports_check_modetstatesRKt
argument_specRMR(R R}((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyR:�s.										(R!R"R:(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyRt�scC`s�t�}td|jd|j�}y,td|�}|j�}|j|�Wn)tk
r{}|jdt	|��nXdS(NR}R{RARZ(
RtRR}R{R@RXt	exit_jsonR
t	fail_jsonRl(tspecRAtmmtresultsRq((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pytmain�s		t__main__N("t
__future__RRRRut
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt%library.module_utils.network.f5.bigipR	t&library.module_utils.network.f5.commonR
RRR
tImportErrort%ansible.module_utils.network.f5.bigipt&ansible.module_utils.network.f5.commonRR(R)R*R1R6tobjectR7R@RtR�R!(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_sys_global.pyt<module>s@


A1
F2m$	

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