cdist/cdist/conf/type/__user_groups/man.rst

53 lines
1.0 KiB
ReStructuredText
Raw Normal View History

cdist-type__user_groups(7)
==========================
NAME
----
cdist-type__user_groups - Manage user groups
DESCRIPTION
-----------
Adds or removes a user from one or more groups.
REQUIRED PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
group
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
the name of the user. Defaults to object_id
2016-05-20 06:50:56 +00:00
state
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
2016-05-20 06:50:56 +00:00
# remove user nginx from groups webuser2
__user_groups nginx-webuser2 --user nginx \
--group webuser2 --state absent
AUTHORS
-------
Steven Armstrong <steven-cdist--@--armstrong.cc>
COPYING
-------
2016-08-10 16:15:54 +00:00
Copyright \(C) 2012 Steven Armstrong. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.