%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/trafficserver.pyo

�
���^c@@s�dZddlmZmZmZd�Zd�Zed�Zd�Z	d�Z
d�Zed	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�ZdS(uY
Control Apache Traffic Server
=============================

.. versionadded:: 2015.8.0
i(tabsolute_importtunicode_literalstprint_functioncC@sdtkrdStS(uI
    Only load if the Traffic Server module is available in __salt__
    utrafficserver.set_configu
trafficserver(t__salt__tFalse(((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt__virtual__
scC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Bounce all Traffic Server nodes in the cluster. Bouncing Traffic Server
    shuts down and immediately restarts Traffic Server, node-by-node.

    .. code-block:: yaml

        bounce_ats_cluster:
          trafficserver.bounce_cluster
    unameuchangesuresultuucommentutestuBouncing clusterutrafficserver.bounce_clusteruBounced clusterN(tNonet__opts__RtTrue(tnametret((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytbounce_clusters






cC@s�i|d6id6dd6dd6}tdr:d|d<|S|ritdd	t�t|d<d
|d<|Std�t|d<d|d<|SdS(
uW
    Bounce Traffic Server on the local node. Bouncing Traffic Server shuts down
    and immediately restarts the Traffic Server node.

    This option modifies the behavior of traffic_line -b and traffic_line -L
    such that traffic_server is not shut down until the number of active client
    connections drops to the number given by the
    proxy.config.restart.active_client_threshold configuration variable.

    .. code-block:: yaml

        bounce_ats_local:
          trafficserver.bounce_local

        bounce_ats_local:
          trafficserver.bounce_local
            - drain: True
    unameuchangesuresultuucommentutestuBouncing local nodeutrafficserver.bounce_localtdrainu$Bounced local node with drain optionuBounced local nodeN(RRRR(R	RR
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytbounce_local.s 







cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Clears accumulated statistics on all nodes in the cluster.

    .. code-block:: yaml

        clear_ats_cluster:
          trafficserver.clear_cluster
    unameuchangesuresultuucommentutestuClearing cluster statisticsutrafficserver.clear_clusteruCleared cluster statisticsN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt
clear_clusterVs	





cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Clears accumulated statistics on the local node.

    .. code-block:: yaml

        clear_ats_node:
          trafficserver.clear_node
    unameuchangesuresultuucommentutestuClearing local node statisticsutrafficserver.clear_nodeuCleared local node statisticsN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt
clear_nodeos	





cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Restart the traffic_manager process and the traffic_server process on all
    the nodes in a cluster.

    .. code-block:: bash

        restart_ats_cluster:
          trafficserver.restart_cluster

    unameuchangesuresultuucommentutestuRestarting clusterutrafficserver.restart_clusteruRestarted clusterN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytrestart_cluster�s





cC@s�i|d6id6dd6dd6}tdr:d|d<|S|ritdd	t�t|d<d
|d<|Std�t|d<d|d<|SdS(
u+
    Restart the traffic_manager and traffic_server processes on the local node.

    This option modifies the behavior of traffic_line -b and traffic_line -L
    such that traffic_server is not shut down until the number of active client
    connections drops to the number given by the
    proxy.config.restart.active_client_threshold configuration variable.

    .. code-block:: yaml

        restart_ats_local:
          trafficserver.restart_local

        restart_ats_local_drain:
          trafficserver.restart_local
            - drain: True
    unameuchangesuresultuucommentutestuRestarting local nodeutrafficserver.restart_localRu&Restarted local node with drain optionuRestarted local nodeN(RRRR(R	RR
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt
restart_local�s 







cC@s{i|d6id6d
d6dd6}tdrFdj||�|d<|Std||�t|d<d	j||�|d<|S(uc
    Set Traffic Server configuration variable values.

    .. code-block:: yaml

        proxy.config.proxy_name:
          trafficserver.config:
            - value: cdn.site.domain.tld

        OR

        traffic_server_setting:
          trafficserver.config:
            - name: proxy.config.proxy_name
            - value: cdn.site.domain.tld

    unameuchangesuresultuucommentutestuConfiguring {0} to {1}utrafficserver.set_configuConfigured {0} to {1}N(RRtformatRR(R	tvalueR
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytconfig�s




cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Shut down Traffic Server on the local node.

    .. code-block:: yaml

        shutdown_ats:
          trafficserver.shutdown
    unameuchangesuresultuucommentutestuShutting down local nodeutrafficserver.shutdownuShutdown local nodeN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytshutdown�s	





cC@s]i|d6id6d	d6dd6}tdr:d|d<|Std�t|d<d|d<|S(
u�
    Start Traffic Server on the local node.

    .. code-block:: yaml

        startup_ats:
          trafficserver.startup
    unameuchangesuresultuucommentutestuStarting up local nodeutrafficserver.startupN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytstartups	





cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Initiate a Traffic Server configuration file reread. Use this command to
    update the running configuration after any configuration file modification.

    The timestamp of the last reconfiguration event (in seconds since epoch) is
    published in the proxy.node.config.reconfigure_time metric.

    .. code-block:: yaml

        refresh_ats:
          trafficserver.refresh
    unameuchangesuresultuucommentutestu#Refreshing local node configurationutrafficserver.refreshu"Refreshed local node configurationN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytrefresh!s





cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Reset performance statistics to zero across the cluster.

    .. code-block:: yaml

        zero_ats_cluster:
          trafficserver.zero_cluster
    unameuchangesuresultuucommentutestuZeroing cluster statisticsutrafficserver.zero_clusteruZeroed cluster statisticsN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytzero_cluster>s	





cC@s]i|d6id6d
d6dd6}tdr:d|d<|Std�t|d<d	|d<|S(u�
    Reset performance statistics to zero on the local node.

    .. code-block:: yaml

        zero_ats_node:
          trafficserver.zero_node
    unameuchangesuresultuucommentutestuZeroing local node statisticsutrafficserver.zero_nodeuZeroed local node statisticsN(RRRR(R	R
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt	zero_nodeWs	





cC@sri|d6id6d
d6dd6}tdrCdj|�|d<|Std|�t|d<d	j|�|d<|S(u
    Mark a cache storage device as offline. The storage is identified by a path
    which must match exactly a path specified in storage.config. This removes
    the storage from the cache and redirects requests that would have used this
    storage to other storage. This has exactly the same effect as a disk
    failure for that storage. This does not persist across restarts of the
    traffic_server process.

    .. code-block:: yaml

        offline_ats_path:
          trafficserver.offline:
            - path: /path/to/cache
    unameuchangesuresultuucommentutestuSetting {0} to offlineutrafficserver.offlineuSet {0} as offlineN(RRRRR(R	tpathR
((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pytofflineps



N(t__doc__t
__future__RRRRRRR
RRRRRRRRRRR(((s=/usr/lib/python2.7/site-packages/salt/states/trafficserver.pyt<module>s		(			'	%					

Zerion Mini Shell 1.0