%PDF- %PDF-
| Direktori : /lib/python2.7/site-packages/salt/modules/ |
| Current File : //lib/python2.7/site-packages/salt/modules/groupadd.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l m Z y d d l Z Wn e k
ra n Xe j
e � Z d Z
d � Z d e d d � Z d d � Z d � Z d
� Z e d � Z d d � Z d d
� Z d d � Z d d � Z d S( u+
Manage groups on Linux, OpenBSD and NetBSD
.. 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 ( t absolute_importt print_functiont unicode_literalsN( t sixu groupc C@ s t d d k r t St d f S( u?
Set the user module if the kernel is Linux or OpenBSD
u kernelu Linuxu OpenBSDu NetBSDu\ The groupadd execution module cannot be loaded: only available on Linux, OpenBSD and NetBSD( u Linuxu OpenBSDu NetBSD( t
__grains__t __virtualname__t False( ( ( s9 /usr/lib/python2.7/site-packages/salt/modules/groupadd.pyt __virtual__ s c C@ s� d g } | r( | j d j | � � n | rN t d d k rN | j d � n | j | � | d
k r} | j d | f � n t d | d t �} | d S( ur
Add the specified group
CLI Example:
.. code-block:: bash
salt '*' group.add foo 3456
u groupaddu -g {0}u kernelu OpenBSDu -ru -Ru cmd.run_allt python_shellu retcodeN( t appendt formatR t Nonet extendt __salt__R ( t namet gidt systemt roott cmdt ret( ( s9 /usr/lib/python2.7/site-packages/salt/modules/groupadd.pyt add'