Merge pull request #71 from mdschmitt/use_nologin_shell
fix(defaults): Use nologin instead of /bin/false
This commit is contained in:
commit
bc5713d29e
@ -18,7 +18,7 @@ prometheus-config-users-install-{{ name }}-user-present:
|
|||||||
- groups:
|
- groups:
|
||||||
- {{ name }}
|
- {{ name }}
|
||||||
{%- if grains.os != 'Windows' %}
|
{%- if grains.os != 'Windows' %}
|
||||||
- shell: /bin/false
|
- shell: {{ p.shell }}
|
||||||
{%- if grains.kernel|lower == 'linux' %}
|
{%- if grains.kernel|lower == 'linux' %}
|
||||||
- createhome: false
|
- createhome: false
|
||||||
{%- if grains.get('osfinger', '') in ['Debian-11'] %}
|
{%- if grains.get('osfinger', '') in ['Debian-11'] %}
|
||||||
|
@ -310,6 +310,8 @@ prometheus:
|
|||||||
rootuser: root
|
rootuser: root
|
||||||
rootgroup: root
|
rootgroup: root
|
||||||
|
|
||||||
|
shell: /usr/sbin/nologin
|
||||||
|
|
||||||
retry_option:
|
retry_option:
|
||||||
# https://docs.saltstack.com/en/latest/ref/states/requisites.html#retrying-states
|
# https://docs.saltstack.com/en/latest/ref/states/requisites.html#retrying-states
|
||||||
attempts: 3
|
attempts: 3
|
||||||
|
@ -406,6 +406,7 @@ Windows:
|
|||||||
|
|
||||||
MacOS:
|
MacOS:
|
||||||
div: '/'
|
div: '/'
|
||||||
|
shell: /sbin/nologin
|
||||||
dir:
|
dir:
|
||||||
default: /etc/defaults
|
default: /etc/defaults
|
||||||
identity:
|
identity:
|
||||||
|
Loading…
Reference in New Issue
Block a user