%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@sWdZddlmZmZmZddlmZdZd�Zd�Z	d�Z
dS(	u
State to work with sysrc

i(tabsolute_importtunicode_literalstprint_function(tsixusysrccC@stdd�S(u.
    Only load if sysrc executable exists
    ucmd.has_execusysrc(t__salt__(((s5/usr/lib/python2.7/site-packages/salt/states/sysrc.pyt__virtual__scK@sBi|d6id6td6dd6}tdd||�}|dk	r�xQtj|�D]=\}}|||krTt|d<dj|�|d<|SqTWntd	tkr�d
j|�|d<i|d6|d|d
d6|d<d|d<|Stdd|d||�}dj|�|d<i|d6|d6|d<t|d<|S(u�
    Ensure a sysrc variable is set to a specific value.

    name
        The variable name to set
    value
        Value to set the variable to
    file
        (optional) The rc file to add the variable to.
    jail
        (option) the name or JID of the jail to set the value in.

    Example:

    .. code-block:: yaml

        syslogd:
          sysrc.managed:
            - name: syslogd_flags
            - value: -ss
    unameuchangesuresultuucommentu	sysrc.gettnameu({0} is already set to the desired value.utestu#The value of "{0}" will be changed!uoldu = u
 will be set.unewu	sysrc.settvalueuThe value of "{0}" was changed!N(tFalseRtNoneRt	iteritemstTruetformatt__opts__(RRtkwargstrett
current_statetrcnametrcdictt	new_state((s5/usr/lib/python2.7/site-packages/salt/states/sysrc.pytmanageds,"


cK@si|d6id6td6dd6}tdd||�}|dkret|d<dj|�|d<|Std	tkr�d
j|�|d<i|d6dj|�d
6|d<d|d<|Stdd||�}dj|�|d<i|d6|d
6|d<t|d<|S(u�
    Ensure a sysrc variable is absent.

    name
        The variable name to set
    file
        (optional) The rc file to add the variable to.
    jail
        (option) the name or JID of the jail to set the value in.
    unameuchangesuresultuucommentu	sysrc.getRu"{0}" is already absent.utestu"{0}" will be removed!uoldu"{0}" will be removed.unewusysrc.removeu"{0}" was removed!N(RRR	RRR
(RRRRR((s5/usr/lib/python2.7/site-packages/salt/states/sysrc.pytabsentTs("


N(t__doc__t
__future__RRRtsalt.extRt__virtualname__RRR(((s5/usr/lib/python2.7/site-packages/salt/states/sysrc.pyt<module>s		<

Zerion Mini Shell 1.0