2012-11-16 14:31:33 +00:00
|
|
|
cdist-type__user_groups(7)
|
|
|
|
==========================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__user_groups - Manage user groups
|
2012-11-16 14:31:33 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
2012-11-16 14:31:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Adds or removes a user from one or more groups.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
group
|
2012-11-16 14:31:33 +00:00
|
|
|
the group to which this user should be added or removed.
|
|
|
|
Can be specified multiple times.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
user
|
2012-11-16 14:31:33 +00:00
|
|
|
the name of the user. Defaults to object_id
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2012-11-16 14:31:33 +00:00
|
|
|
absent or present. Defaults to present.
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
__user_groups nginx --group webuser1 --group webuser2
|
2012-11-16 14:31:33 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# remove user nginx from groups webuser2
|
|
|
|
__user_groups nginx-webuser2 --user nginx \
|
|
|
|
--group webuser2 --state absent
|
2012-11-16 14:31:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-05-20 06:50:56 +00:00
|
|
|
- `cdist-type(7) <cdist-type.html>`_
|
2012-11-16 14:31:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2012 Steven Armstrong. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|