Skip to content

Commit

Permalink
Merge pull request #72 from mdschmitt/fix_system_users
Browse files Browse the repository at this point in the history
fix(users): users should always be created as system users
  • Loading branch information
noelmcloughlin authored Dec 9, 2021
2 parents 4aa4777 + ee20f82 commit 11513c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions prometheus/config/users.sls
Original file line number Diff line number Diff line change
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 11513c4

Please sign in to comment.