diff --git a/prometheus/config/users.sls b/prometheus/config/users.sls index 5a61317..14be2ba 100644 --- a/prometheus/config/users.sls +++ b/prometheus/config/users.sls @@ -21,6 +21,9 @@ prometheus-config-users-install-{{ name }}-user-present: - shell: /bin/false {%- 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 %}