fix(defaults): use nologin instead of /bin/false
This commit is contained in:
parent
7140ccf8a8
commit
1af0deb087
@ -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
|
||||
{%- elif grains.os_family == 'MacOS' %}
|
||||
|
@ -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
|
||||
|
@ -406,6 +406,7 @@ Windows:
|
||||
|
||||
MacOS:
|
||||
div: '/'
|
||||
shell: /sbin/nologin
|
||||
dir:
|
||||
default: /etc/defaults
|
||||
identity:
|
||||
|
Loading…
Reference in New Issue
Block a user