HamWAN / infrastructure-configs

Ansible roles and playbooks for HamWAN servers, applications, and router infrastructure.
http://www.hamwan.org/
Apache License 2.0
8 stars 2 forks source link

Introduce group management scope #17

Closed bkus closed 1 year ago

bkus commented 1 year ago

Add the /etc/group_managed_scope control file, which defines the limits of the automation's scope of control over groups. Any groups NOT listed in that file will NOT be automatically deleted. Any groups listed in that file CAN be subject to automatic deletion when the ansible config (intent) changes to no longer require them.

This feature is analogous to users being present in managed groups, where any user that is a member of the group, but shouldn't be, falls within the scope of that group's user management, and is automatically deleted.

UNIX doesn't have the ability to put groups into other groups, or another way of grouping groups, so this /etc/group_managed_scope method needed to be invented here to express scope of management.