%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/rabbitmq_vhost.pyc

�
���^c@@shdZddlmZmZmZddlZddlZeje	�Z
d�Zd�Zd�Z
dS(u�
Manage RabbitMQ Virtual Hosts
=============================

Example:

.. code-block:: yaml

    virtual_host:
      rabbitmq_vhost.present:
        - user: rabbit_user
        - conf: .*
        - write: .*
        - read: .*
i(tabsolute_importtunicode_literalstprint_functionNcC@stjjjd�dk	S(u-
    Only load if RabbitMQ is installed.
    urabbitmqctlN(tsalttutilstpathtwhichtNone(((s>/usr/lib/python2.7/site-packages/salt/states/rabbitmq_vhost.pyt__virtual__scC@s�i|d6td6dd6id6}td|�}|rOdj|�|d<|Stds�td	|�}d
|kr�t|d<|d
|d<|Sd|kr�|d|d<q�nidd6|d
6|d<tdr�d|d<dj|�|d<n|S(u�
    Ensure the RabbitMQ VHost exists.

    name
        VHost name

    user
        Initial user permission to set on the VHost, if present

        .. deprecated:: 2015.8.0
    owner
        Initial owner permission to set on the VHost, if present

        .. deprecated:: 2015.8.0
    conf
        Initial conf string to apply to the VHost and user. Defaults to .*

        .. deprecated:: 2015.8.0
    write
        Initial write permissions to apply to the VHost and user.
        Defaults to .*

        .. deprecated:: 2015.8.0
    read
        Initial read permissions to apply to the VHost and user.
        Defaults to .*

        .. deprecated:: 2015.8.0
    runas
        Name of the user to run the command

        .. deprecated:: 2015.8.0
    unameuresultuucommentuchangesurabbitmq.vhost_existsu"Virtual Host '{0}' already exists.utesturabbitmq.add_vhostuErroruAddeduoldunewu#Virtual Host '{0}' will be created.N(tTruet__salt__tformatt__opts__tFalseR(tnametrettvhost_existstresult((s>/usr/lib/python2.7/site-packages/salt/states/rabbitmq_vhost.pytpresent#s$""



cC@s�i|d6td6dd6id6}td|�}|sOdj|�|d<|Stds�td	|�}d
|kr�t|d<|d
|d<|Sd|kr�|d|d<q�nidd6|d
6|d<tdr�d|d<dj|�|d<n|S(u�
    Ensure the RabbitMQ Virtual Host is absent

    name
        Name of the Virtual Host to remove
    runas
        User to run the command

        .. deprecated:: 2015.8.0
    unameuresultuucommentuchangesurabbitmq.vhost_existsu"Virtual Host '{0}' is not present.utesturabbitmq.delete_vhostuErroruDeletedunewuoldu#Virtual Host '{0}' will be removed.N(R	R
RRR
R(RRRR((s>/usr/lib/python2.7/site-packages/salt/states/rabbitmq_vhost.pytabsent`s$"



(t__doc__t
__future__RRRtloggingtsalt.utils.pathRt	getLoggert__name__tlogRRR(((s>/usr/lib/python2.7/site-packages/salt/states/rabbitmq_vhost.pyt<module>s		=

Zerion Mini Shell 1.0