Skip to content

Commit

Permalink
fix(users): users should always be created as system users
Browse files Browse the repository at this point in the history
  • Loading branch information
mdschmitt committed Dec 9, 2021
1 parent 4aa4777 commit ee20f82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions prometheus/config/users.sls
Expand Up @@ -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 %}
Expand Down

0 comments on commit ee20f82

Please sign in to comment.