Merge pull request #71 from mdschmitt/use_nologin_shell

fix(defaults): Use nologin instead of /bin/false
This commit is contained in:
N 2021-08-06 11:00:29 +01:00 committed by GitHub
commit bc5713d29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,7 @@ prometheus-config-users-install-{{ name }}-user-present:
- groups:
- {{ name }}
{%- if grains.os != 'Windows' %}
- shell: /bin/false
- shell: {{ p.shell }}
{%- if grains.kernel|lower == 'linux' %}
- createhome: false
{%- if grains.get('osfinger', '') in ['Debian-11'] %}

View File

@ -310,6 +310,8 @@ prometheus:
rootuser: root
rootgroup: root
shell: /usr/sbin/nologin
retry_option:
# https://docs.saltstack.com/en/latest/ref/states/requisites.html#retrying-states
attempts: 3

View File

@ -406,6 +406,7 @@ Windows:
MacOS:
div: '/'
shell: /sbin/nologin
dir:
default: /etc/defaults
identity: