CDIST-TYPE__USER_GROUPS(7)
π CDIST-TYPE__USER_GROUPS π
okay bestie, welcome to cdist-type__user_groups from the cdist manual pages (section 7, if you're keeping score) β¨ this one is a whole lil' bop and it's genuinely so useful, let's get into it π«Ά
πΈ NAME πΈ
cdist-type__user_groups β manage user groups π
β¨ DESCRIPTION β¨
So basically? This type adds or removes a user from one or more groups. That's it. That's the whole vibe. No cap. π
π REQUIRED PARAMETERS π
groupβ the group to which this user should be added or removed. And listen, you can specify it multiple times β stack 'em up, she's flexible like that π¦
π OPTIONAL PARAMETERS π
userβ the name of the user. Defaults toobject_id(iykyk, that's just how cdist rolls).stateβabsentorpresent. Defaults topresent. Present = she's in the group, absent = she's out, no hard feelings π
π EXAMPLES π
okay here's the tea, watch this:
__user_groups nginx --group webuser1 --group webuser2
# remove user nginx from groups webuser2
__user_groups nginx-webuser2 --user nginx \
--group webuser2 --state absent
see how the second one's got that --state absent going on? that's the remove-her-from-the-group energy. and the --user nginx bit is there because the object_id is nginx-webuser2 but the actual user we're messing with is nginx. literally so clean β¨
π«Ά AUTHORS π«Ά
Steven Armstrong <steven-cdist--@--armstrong.cc> β absolute icon, we stan π₯°
π COPYING π
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. π (fr fr, respect the license bestie)
π COPYRIGHT π
ungleich GmbH 2021
and that's a wrap, my love πΈ this was CDIST-TYPE__USER_GROUPS(7) from cdist version 7.0.0, dated Jul 31, 2022 β go forth and manage those groups, you're the main character now π
β¨π¦
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms