HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/tuned.cpython-310.pyc
o

�N�g)
�@s"dZddlZdd�Zddd�ZdS)z�
Interface to Red Hat tuned-adm module

:maintainer:    Syed Ali <alicsyed@gmail.com>
:maturity:      new
:depends:       cmd.run
:platform:      Linux
�NcCs�diddd�}|||<|}td�}td�}||vr!tj�d��||vr/d|d<d	|d
<|StddurMd|�d
�|d
<|d|��d�|d<d|d<|Std|�}d|�d�|d
<||d�|d<d|d<|S)az
    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_>`
    �F��name�changes�result�comment�tuned.activez
tuned.listzInvalid Profile NameTr�#System already in the correct stater�test�The state of "�" will be changed.zProfile will be set to ��old�newrNz
tuned.profilez" was changed!)�__salt__�salt�
exceptionsZSaltInvocationError�__opts__)r�ret�profile�
current_stateZvalid_profilesZ	new_state�r�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/tuned.pyr
s2


�
�rcCs�diddd�}td�}|dkrd|d<d|d<|Std	dur5d
|�d�|d<|dd
�|d<d|d<|Std�rGd|d<|dd
�|d<|SdS)z�

    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_>`
    �offFrrTrr	rr
rrzProfile will be set to offr
rNz	tuned.off)rr)rrrrrrrSs(

�

��r)N)�__doc__Zsalt.exceptionsrrrrrrr�<module>s	F