%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/sysctl.pyo

�
���^c@@sgdZddlmZmZmZddlZddlmZddlm	Z	d�Z
dd�ZdS(u�
Configuration of the kernel using sysctl
========================================

Control the kernel sysctl system.

.. code-block:: yaml

  vm.swappiness:
    sysctl.present:
      - value: 20
i(tabsolute_importtunicode_literalstprint_functionN(tCommandExecutionError(tsixcC@s
dtkS(uF
    This state is only available on Minions which support sysctl
    usysctl.show(t__salt__(((s6/usr/lib/python2.7/site-packages/salt/states/sysctl.pyt__virtual__scC@s�i|d6td6id6dd6}|dkrSdtkrJtd�}qSd}ntdrtd	�}td	d
|�}|dkr�d|d<dj||�|d<|S||krG||krGtjdd
||�tjdd
tj|��kr d|d<dj||�|d<|Sd|d<dj||�|d<|Sn�||kr�||kr�d|d<dj||�|d<|S||kr�||kr�tj|�j	�td|�j	�kr�t|d<dj||�|d<|Snd|d<dj||�|d<|Sytd|||�}Wn7t
k
rd}t|d<dj|||�|d<|SX|dkr�i||6|d<dj||�|d<n%|dkr�dj||�|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.
    unameuresultuchangesuucommentusysctl.default_configu/etc/sysctl.confutestusysctl.showtconfig_fileuuSysctl 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}usysctl.persistuFailed to set {0} to {1}: {2}uUpdateduUpdated sysctl value {0} = {1}uAlready setN(tTruetNoneRt__opts__tformattretsubRt	text_typetsplitRtFalse(tnametvaluetconfigtrettcurrentt
configuredtupdatetexc((s6/usr/lib/python2.7/site-packages/salt/states/sysctl.pytpresent!sl

	


!


+


(
t__doc__t
__future__RRRRtsalt.exceptionsRtsalt.extRRR	R(((s6/usr/lib/python2.7/site-packages/salt/states/sysctl.pyt<module>
s	

Zerion Mini Shell 1.0