Add users conditional for sss
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Skip failing local users management on machines using sssd. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
bfeeb8673e
commit
51e33815df
@ -8,7 +8,11 @@ include:
|
|||||||
- profile.seccheck
|
- profile.seccheck
|
||||||
- profile.zypp
|
- profile.zypp
|
||||||
- profile.prometheus.node_exporter
|
- profile.prometheus.node_exporter
|
||||||
|
{%- if salt['cmd.run']("awk '/^passwd/{ print $2; exit }' /etc/nsswitch.conf") == 'sss' %}
|
||||||
|
{%- do salt.log.warning('Not configuring local users due to sss') %}
|
||||||
|
{%- else %}
|
||||||
- users
|
- users
|
||||||
|
{%- endif %}
|
||||||
- .ssh
|
- .ssh
|
||||||
- postfix.config
|
- postfix.config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user