%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/influxdb08_user.pyo

�
���^c@@s_dZddlmZmZmZd�Zdddddd�Zdddddd�ZdS(u�
Management of InfluxDB 0.8 users
================================

(compatible with InfluxDB version 0.5-0.8)

.. versionadded:: 2014.7.0

i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(u9
    Only load if the influxdb08 module is available
    uinfluxdb08.db_existsuinfluxdb08_user(t__salt__tFalse(((s?/usr/lib/python2.7/site-packages/salt/states/influxdb08_user.pyt__virtual__sc	C@s2i|d6id6td6dd6}|rftd|||||�rft|d<dj|�|d<|Std||||||�std	r�d|d<d
j|�|d<|Std|||||||�r�dj|�|d<d
|d|<|Sdj|�|d<t|d<|Sndj|�|d<|S(u�
    Ensure that the cluster admin or database user is present.

    name
        The name of the user to manage

    passwd
        The password of the user

    database
        The database to create the user in

    user
        The user to connect as (must be able to create the user)

    password
        The password of the user

    host
        The host to connect to

    port
        The port to connect to

    unameuchangesuresultuucommentuinfluxdb08.db_existsuDatabase {0} does not existuinfluxdb08.user_existsutestu/User {0} is not present and needs to be createduinfluxdb08.user_createuUser {0} has been createduPresentuFailed to create user {0}uUser {0} is already presentN(tTrueRRtformatt__opts__tNone(tnametpasswdtdatabasetusertpasswordthosttporttret((s?/usr/lib/python2.7/site-packages/salt/states/influxdb08_user.pytpresents4 







cC@s�i|d6id6td6dd6}td||||||�r�tdrld|d<dj|�|d<|Std	||||||�r�d
j|�|d<d|d|<|Sdj|�|d<t|d<|Snd
j|�|d<|S(u�
    Ensure that the named cluster admin or database user is absent.

    name
        The name of the user to remove

    database
        The database to remove the user from

    user
        The user to connect as (must be able to remove the user)

    password
        The password of the user

    host
        The host to connect to

    port
        The port to connect to

    unameuchangesuresultuucommentuinfluxdb08.user_existsutestu+User {0} is present and needs to be removeduinfluxdb08.user_removeuUser {0} has been removeduAbsentuFailed to remove user {0}u0User {0} is not present, so it cannot be removedN(RRRR	RR(R
RR
RRRR((s?/usr/lib/python2.7/site-packages/salt/states/influxdb08_user.pytabsent]s,






N(	t__doc__t
__future__RRRRR	RR(((s?/usr/lib/python2.7/site-packages/salt/states/influxdb08_user.pyt<module>
s	?

Zerion Mini Shell 1.0