%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/apache_conf.pyo |
� ���^c @@ s] d Z d d l m Z m Z m Z d d l m Z d d l Z d � Z d � Z d � Z d S( u Manage Apache Confs .. versionadded:: 2016.3.0 Enable and disable apache confs. .. code-block:: yaml Enable security conf: apache_conf.enabled: - name: security Disable security conf: apache_conf.disabled: - name: security i ( t absolute_importt print_functiont unicode_literals( t sixNc C@ s) d t k r% t j j j d � r% d St S( u- Only load if a2enconf is available. u apache.a2enconfu a2enconfu apache_conf( t __salt__t saltt utilst patht whicht False( ( ( s; /usr/lib/python2.7/site-packages/salt/states/apache_conf.pyt __virtual__ s c C@ sK i | d 6t d 6d d 6i d 6} t d | � } | s4t d r� d j | � } | | d <d | d d <| | d d <d | d <| St d | � d } t | t j � r� d | k r� t | d <d | d d <| | d d <qGt | d <d j | � | d <t | t j � r-| d d j | � | d <n | Sn d j | � | d <| S( uU Ensure an Apache conf is enabled. name Name of the Apache conf u nameu resultu u commentu changesu apache.check_conf_enabledu testu% Apache conf {0} is set to be enabled.u oldu newu apache.a2enconfu Statusu enabledu Failed to enable {0} Apache confu ({0})u {0} already enabled.N( t TrueR t __opts__t formatt Nonet isinstanceR t string_typesR ( t namet rett is_enabledt msgt status( ( s; /usr/lib/python2.7/site-packages/salt/states/apache_conf.pyt enabled! s, " c C@ sK i | d 6t d 6d d 6i d 6} t d | � } | r4t d r� d j | � } | | d <| | d d <d | d d <d | d <| St d | � d } t | t j � r� d | k r� t | d <| | d d <d | d d <qGt | d <d j | � | d <t | t j � r-| d d j | � | d <n | Sn d j | � | d <| S( uV Ensure an Apache conf is disabled. name Name of the Apache conf u nameu resultu u commentu changesu apache.check_conf_enabledu testu&