%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/modules/ |
| Current File : //proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/modules/tuned.pyo |
�
���^c @@ s~ d Z d d l m Z m Z m Z d d l Z d d l Z i d d 6Z d Z d � Z
d � Z d � Z d
� Z
d � Z d S( u�
Interface to Red Hat tuned-adm module
:maintainer: Syed Ali <alicsyed@gmail.com>
:maturity: new
:depends: tuned-adm
:platform: Linux
i ( t absolute_importt unicode_literalst print_functionNu listu list_u tunedc C@ s) t j j j d � } | s% t d f St S( uF
Check to see if tuned-adm binary is installed on the system
u tuned-admuS The tuned execution module failed to load: the tuned-adm binary is not in the path.( t saltt utilst patht whicht Falset __virtualname__( t tuned_adm( ( s6 /usr/lib/python2.7/site-packages/salt/modules/tuned.pyt __virtual__ s
c C@ s] t d d � j � } | j d � | j � g | D] } | j d � d j � ^ q4 } | S( un
List the profiles available
CLI Example:
.. code-block:: bash
salt '*' tuned.list
u cmd.runu tuned-adm listi u - i ( t __salt__t
splitlinest popt splitt strip( t resultt i( ( s6 /usr/lib/python2.7/site-packages/salt/modules/tuned.pyt list_$ s
,c C@ sG t d d � } t j d � } t j | | � } d j | j d � � S( ur
Return current active profile
CLI Example:
.. code-block:: bash
salt '*' tuned.active
u cmd.runu tuned-adm activeu4 (?P<stmt>Current active profile:) (?P<profile>\w+.*)u {0}u profile( R t ret compilet matcht formatt group( R t patternR ( ( s6 /usr/lib/python2.7/site-packages/salt/modules/tuned.pyt active: s c C@ s* t d d � } t | � d k r&