Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/identity/opendj/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZdefd
��YZ
d�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: opendj_backendprop
short_description: Will update the backend configuration of OpenDJ via the dsconfig set-backend-prop command.
description:
   - This module will update settings for OpenDJ with the command set-backend-prop.
   - It will check first via de get-backend-prop if configuration needs to be applied.
version_added: "2.2"
author:
    - Werner Dijkerman (@dj-wasabi)
options:
    opendj_bindir:
        description:
            - The path to the bin directory of OpenDJ.
        required: false
        default: /opt/opendj/bin
    hostname:
        description:
            - The hostname of the OpenDJ server.
        required: true
    port:
        description:
            - The Admin port on which the OpenDJ instance is available.
        required: true
    username:
        description:
            - The username to connect to.
        required: false
        default: cn=Directory Manager
    password:
        description:
            - The password for the cn=Directory Manager user.
            - Either password or passwordfile is needed.
        required: false
    passwordfile:
        description:
            - Location to the password file which holds the password for the cn=Directory Manager user.
            - Either password or passwordfile is needed.
        required: false
    backend:
        description:
            - The name of the backend on which the property needs to be updated.
        required: true
    name:
        description:
            - The configuration setting to update.
        required: true
    value:
        description:
            - The value for the configuration item.
        required: true
    state:
        description:
            - If configuration needs to be added/updated
        required: false
        default: "present"
s*
  - name: "Add or update OpenDJ backend properties"
    action: opendj_backendprop
            hostname=localhost
            port=4444
            username="cn=Directory Manager"
            password=password
            backend=userRoot
            name=index-entry-limit
            value=5000
t
(t
AnsibleModuletBackendPropcB`s5eZd�Zd�Zd�Zdddd�ZRS(cC`s
||_dS(N(t_module(tselftmodule((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pyt__init__]sc
C`s�|ddd|dt|�d|d|ddd	g
|}|jj|�\}}	}
|d
krf|	S|jjddt|
��dS(
Ns	/dsconfigsget-backend-props-hs--ports--bindDNs--backend-names-ns-Xs-sitmsgsError message: (tstrRtrun_commandt	fail_json(Rt
opendj_bindirthostnametporttusernametpassword_methodtbackend_namet
my_commandtrctstdouttstderr((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pytget_property`sc	
C`s�|ddd|dt|�d|d|d|d|d	d
g|}	|jj|	�\}
}}|
dkrqtS|jjdd
|�dS(Ns	/dsconfigsset-backend-props-hs--ports--bindDNs--backend-names--sett:s-ns-XiRsError message: (RRRtTrueR(
RRRRRRRtnametvalueRRRR((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pytset_propertyps	cC`sZxS|jd�D]B}|r|j�}|d|krR|d|krOtSqRqqWtS(Ns
ii(tsplitRtFalse(RtdataR R!tconfig_linet
split_line((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pyt
validate_data�sN(t__name__t
__module__RRR"tNoneR((((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pyR
[s			cC`s�tdtdtdddd�dtdt�d	tdt�d
tdddt�dtdtd
t�dtdtdd�dtdt�dtdt�dtdt�dtdd��
dtdddggdddgg�}|jd}|jd}|jd	}|jd
}|jd}|jd}|jd}|jd}|jd}	|jd}
|jddk	r�d|g}n"|jddk	r�d|g}nt|�}|jd|d|d	|d
|d|d|�}
|
r�|jd|
d|d|	�s�|j	r&|j
dt�n|jd|d|d	|d
|d|d|d|d|	�ru|j
dt�q�|j
dt�q�|j
dt�n|j
dt�dS(Nt
argument_specRtdefaults/opt/opendj/binttypetpathRtrequiredRRscn=Directory Managertpasswordtno_logtpasswordfiletbackendR R!tstatetpresenttsupports_check_modetmutually_exclusivetrequired_one_ofs-ws-jRRR%tchanged(R	tdictRR$tparamsR+R
RR(t
check_modet	exit_jsonR"(R
RRRRR1R3RR R!R5Rtopendjtvalidate((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pytmain�sh









			t__main__N(t
__future__RRRR.t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	tobjectR
RAR)(((sV/usr/lib/python2.7/site-packages/ansible/modules/identity/opendj/opendj_backendprop.pyt<module>s


;0	@

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