add a list of reserved usernames for centos

This commit is contained in:
m0duspwnens
2021-06-23 15:21:19 -04:00
parent 322c2804fc
commit f6bd74aadf
2 changed files with 41 additions and 1 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
# If a user is changed from present to absent, their usergroup will be removed, but any additional usergroups that were created
# for that user will remain.
{% for username, userdeets in pillar.get('users', {}).items() %}
{% from 'users/map.jinja' import reserved_usernames with context %}
{% for username, userdeets in pillar.get('users', {}).items() if username not in reserved_usernames %}
{% if 'status' in userdeets %}
{% if userdeets.status == 'absent' %}