From ee20f821d663ea1b2b1da444e3b4e01a08349eb1 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Thu, 9 Dec 2021 00:54:12 -0700 Subject: [PATCH] fix(users): users should always be created as system users --- prometheus/config/users.sls | 2 -- 1 file changed, 2 deletions(-) diff --git a/prometheus/config/users.sls b/prometheus/config/users.sls index 61eac52..1e9e96e 100644 --- a/prometheus/config/users.sls +++ b/prometheus/config/users.sls @@ -21,9 +21,7 @@ prometheus-config-users-install-{{ name }}-user-present: - shell: {{ p.shell }} {%- if grains.kernel|lower == 'linux' %} - createhome: false - {%- if grains.get('osfinger', '') in ['Debian-11'] %} - system: true - {%- endif %} {%- elif grains.os_family == 'MacOS' %} - unless: /usr/bin/dscl . list /Users | grep {{ name }} >/dev/null 2>&1 {%- endif %}