%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/modules/rest_service.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z e j
e � Z i d d 6Z
d Z d � Z d � Z d � Z d d
� Z d d � Z d d � Z d d
� Z d d � Z d d � Z d S( u=
Provide the service module for the proxy-minion REST sample
i ( t absolute_importt unicode_literalst print_functionNu listu list_u servicec C@ sS y. t j j j � r- t d d d k r- t SWn t k
rH t d f SXt d f S( u6
Only work on systems that are a proxy minion
u proxyu proxytypeu rest_sampleuP The rest_service execution module failed to load. Check the proxy key in pillar.u[ The rest_service execution module failed to load: only works on a rest_sample proxy minion.( t saltt utilst platformt is_proxyt __opts__t __virtualname__t KeyErrort False( ( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt __virtual__ s
c C@ s d } t | � S( u�
Return a list of all available services
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' service.get_all
u rest_sample.service_list( t __proxy__( t proxy_fn( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt get_all/ s c C@ s t � S( u�
Return a list of all available services.
.. versionadded: 2015.8.1
CLI Example:
.. code-block:: bash
salt '*' service.list
( R ( ( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt list_? s c C@ s d } t | | � S( u�
Start the specified service on the rest_sample
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' service.start <service name>
u rest_sample.service_start( R ( t namet sigR
( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt startN s
c C@ s d } t | | � S( u�
Stop the specified service on the rest_sample
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' service.stop <service name>
u rest_sample.service_stop( R ( R R R
( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt stop_ s c C@ s d } t | | � S( u�
Restart the specified service with rest_sample
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' service.restart <service name>
u rest_sample.service_restart( R ( R R R
( ( s= /usr/lib/python2.7/site-packages/salt/modules/rest_service.pyt restarto s
c C@ s� d } t t j d | � � } | r<