%PDF- %PDF-
| Direktori : /lib/python2.7/site-packages/salt/modules/ |
| Current File : //lib/python2.7/site-packages/salt/modules/riak.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d � Z d � Z d � Z d � Z
d � Z d � Z d
� Z
d � Z d � Z d
� Z d � Z d � Z d S( u
Riak Salt Module
i ( t absolute_importt unicode_literalst print_functionNc C@ s# t j j j d � r t St d f S( u8
Only available on systems with Riak installed.
u riakuM The riak execution module failed to load: the riak binary is not in the path.( t saltt utilst patht whicht Truet False( ( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt __virtual__ s c C@ s) t d d j t j j j | � | � � S( u
Execute Riak commands
u cmd.run_allu {0} {1}( t __salt__t formatR R R R ( t namet cmd( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt
__execute_cmd s c C@ s` i d d 6t d 6} t d d � } | d d k rD | d | d <n | d | d <t | d <| S(
u]
Start Riak
CLI Example:
.. code-block:: bash
salt '*' riak.start
u u commentu successu riaku startu retcodei u stderru stdout( R R R ( t retR
( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt start s
c C@ s` i d d 6t d 6} t d d � } | d d k rD | d | d <n | d | d <t | d <| S(
u}
Stop Riak
.. versionchanged:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' riak.stop
u u commentu successu riaku stopu retcodei u stderru stdout( R R R ( R R
( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt stop4 s
c C@ sl i d d 6t d 6} t d d j | | � � } | d d k rP | d | d <n | d | d <t | d <| S( u
Join a Riak cluster
.. versionchanged:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' riak.cluster_join <user> <host>
username - The riak username to join the cluster
hostname - The riak hostname you are connecting to
u u commentu successu
riak-adminu cluster join {0}@{1}u retcodei u stdout( R R R R ( t usernamet hostnameR R
( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt cluster_joinM s
c C@ sl i d d 6t d 6} t d d j | | � � } | d d k rP | d | d <n | d | d <t | d <| S( u
Leave a Riak cluster
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' riak.cluster_leave <username> <host>
username - The riak username to join the cluster
hostname - The riak hostname you are connecting to
u u commentu successu
riak-adminu cluster leave {0}@{1}u retcodei u stdout( R R R R ( R R R R
( ( s5 /usr/lib/python2.7/site-packages/salt/modules/riak.pyt
cluster_leavek s
c C@ s'