%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/tuned.pyo |
� ���^c @@ sG d Z d d l m Z m Z m Z d d l Z d � Z d d � Z d S( u� Interface to Red Hat tuned-adm module :maintainer: Syed Ali <alicsyed@gmail.com> :maturity: new :depends: cmd.run :platform: Linux i ( t absolute_importt unicode_literalst print_functionNc C@ s, i d d 6i d 6t d 6d d 6} | | | <| } t d � } t d � } | | k rm t j j d � � n | | k r� t | d <d | d <| St d t k r� d j | � | d <i | d 6d j | � d 6| d <d | d <| St d | � } d j | � | d <i | d 6| d 6| d <t | d <| S( uz This state module allows you to modify system tuned parameters Example tuned.sls file to set profile to virtual-guest tuned: tuned: - profile - name: virtual-guest name tuned profile name to set the system to To see a valid list of states call execution module: :py:func:`tuned.list <salt.modules.tuned.list_>` u u nameu changesu resultu commentu tuned.activeu tuned.listu Invalid Profile Nameu# System already in the correct stateu testu# The state of "{0}" will be changed.u oldu Profile will be set to {0}u newu tuned.profileu The state of "{0}" was changed!N( t Falset __salt__t saltt exceptionst SaltInvocationErrort Truet __opts__t formatt None( t namet rett profilet current_statet valid_profilest new_state( ( s5 /usr/lib/python2.7/site-packages/salt/states/tuned.pyR s4 " c C@ s� i d d 6i d 6t d 6d d 6} t d � } | d k rS t | d <d | d <| St d t k r� d j | � | d <i | d 6d d 6| d <d | d <| St d � r� t | d <i | d 6d d 6| d <| Sd S( u� Turns 'tuned' off. Example tuned.sls file for turning tuned off: tuned: tuned.off: [] To see a valid list of states call execution module: :py:func:`tuned.list <salt.modules.tuned.list_>` u offu nameu changesu resultu commentu tuned.activeu# System already in the correct stateu testu# The state of "{0}" will be changed.u oldu Profile will be set to offu newu tuned.offN( R R R R R R ( R R R ( ( s5 /usr/lib/python2.7/site-packages/salt/states/tuned.pyt offY s( " ( t __doc__t __future__R R R t salt.exceptionsR R R R ( ( ( s5 /usr/lib/python2.7/site-packages/salt/states/tuned.pyt <module> s G