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 to object_id (iykyk, that's just how cdist rolls).
  • state β€” absent or present. Defaults to present. 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)


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