%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/solaris_group.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZeje	�Z
yddlZWnek
rlnXdZ
d�Zdd�Zd�Zd�Zed	�Zd
�ZdS(u
Manage groups on Solaris

.. important::
    If you feel that Salt should be using this module to manage groups on a
    minion, and it is using a different module (or gives an error similar to
    *'group.info' is not available*), see :ref:`here
    <module-provider-override>`.
i(tabsolute_importtunicode_literalstprint_functionNugroupcC@stddkrtStdfS(u5
    Set the group module if the kernel is SunOS
    ukerneluSunOSuUThe solaris_group execution module failed to load: only available on Solaris systems.(t
__grains__t__virtualname__tFalse(((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pyt__virtual__ scK@s�tjjj|jdt��r1tjd�n|rGtjd�nd}|ri|dj|�7}n||7}t	d|dt�}|dS(	ur
    Add the specified group

    CLI Example:

    .. code-block:: bash

        salt '*' group.add foo 3456
    usystemu;solaris_group module does not support the 'system' argumentu"Invalid kwargs passed to group.addu	groupadd u-g {0} ucmd.run_alltpython_shelluretcode(
tsalttutilstdatatis_truetpopRtlogtwarningtformatt__salt__(tnametgidtkwargstcmdtret((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pytadd*s
!
cC@s(tddj|�dt�}|dS(uo
    Remove the named group

    CLI Example:

    .. code-block:: bash

        salt '*' group.delete foo
    ucmd.run_allugroupdel {0}Ruretcode(RRR(RR((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pytdeleteDs
cC@sXytj|�}Wntk
r'iSXi|jd6|jd6|jd6|jd6SdS(uw
    Return information about a group

    CLI Example:

    .. code-block:: bash

        salt '*' group.info foo
    unameupasswdugidumembersN(tgrptgetgrnamtKeyErrortgr_namet	gr_passwdtgr_gidtgr_mem(Rtgrinfo((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pytinfoSs




cC@s\dtkr|rtdSg}x*tj�D]}|jt|j��q.W|td<|S(un
    Return info on all groups

    CLI Example:

    .. code-block:: bash

        salt '*' group.getent
    ugroup.getent(t__context__RtgetgralltappendR R(trefreshRR((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pytgetenths

cC@sptd|�}||kr tSdj||�}td|dt�td|�}||krl||kStS(u}
    Change the gid for a named group

    CLI Example:

    .. code-block:: bash

        salt '*' group.chgid foo 4376
    ufile.group_to_gidugroupmod -g {0} {1}ucmd.runR(RtTrueRR(RRtpre_gidRtpost_gid((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pytchgid}s

(t__doc__t
__future__RRRtloggingtsalt.utils.dataRt	getLoggert__name__R
RtImportErrorRRtNoneRRR RR%R)(((s>/usr/lib/python2.7/site-packages/salt/modules/solaris_group.pyt<module>
s
	
		

Zerion Mini Shell 1.0