%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/states/sysctl.pyc |
�
���^c @@ sg d Z d d l m Z m Z m Z d d l Z d d l m Z d d l m Z d � Z
d d � Z d S( u�
Configuration of the kernel using sysctl
========================================
Control the kernel sysctl system.
.. code-block:: yaml
vm.swappiness:
sysctl.present:
- value: 20
i ( t absolute_importt unicode_literalst print_functionN( t CommandExecutionError( t sixc C@ s
d t k S( uF
This state is only available on Minions which support sysctl
u sysctl.show( t __salt__( ( ( s6 /usr/lib/python2.7/site-packages/salt/states/sysctl.pyt __virtual__ s c C@ s� i | d 6t d 6i d 6d d 6} | d k rS d t k rJ t d � } qS d } n t d rt d � } t d d
| � } | d k r� d | d <d j | | � | d <| S| | k rG| | k rGt j d d
| | � t j d d
t j | � � k r d | d <d j | | � | d <| Sd | d <d j | | � | d <| Sn� | | k r�| | k r�d | d <d j | | � | d <| S| | k r�| | k r�t j | � j � t d | � j � k r�t | d <d j | | � | d <| Sn d | d <d j | | � | d <| Sy t d | | | � } Wn7 t
k
rd} t | d <d j | | | � | d <| SX| d k r�i | | 6| d <d j | | � | d <n% | d k r�d j | | � | d <n | S( u�
Ensure that the named sysctl value is set in memory and persisted to the
named configuration file. The default sysctl configuration file is
/etc/sysctl.conf
name
The name of the sysctl value to edit
value
The sysctl value to apply
config
The location of the sysctl configuration file. If not specified, the
proper location will be detected based on platform.
u nameu resultu changesu u commentu sysctl.default_configu /etc/sysctl.confu testu sysctl.showt config_fileuu Sysctl option {0} might be changed, we failed to check config file at {1}. The file is either unreadable, or missing.u +| +u u* Sysctl option {0} set to be changed to {1}u� Sysctl value is currently set on the running system but not in a config file. Sysctl option {0} set to be changed to {1} in config file.u� Sysctl value {0} is present in configuration file but is not present in the running config. The value {0} is set to be changed to {1}u
sysctl.getu% Sysctl value {0} = {1} is already setu) Sysctl option {0} would be changed to {1}u sysctl.persistu Failed to set {0} to {1}: {2}u Updatedu Updated sysctl value {0} = {1}u Already setN( t Truet NoneR t __opts__t formatt ret subR t text_typet splitR t False( t namet valuet configt rett currentt
configuredt updatet exc( ( s6 /usr/lib/python2.7/site-packages/salt/states/sysctl.pyt present! sl
!
+
(
t __doc__t
__future__R R R R t salt.exceptionsR t salt.extR R R R ( ( ( s6 /usr/lib/python2.7/site-packages/salt/states/sysctl.pyt <module>
s