From 51e33815df89a649f21b7c6d62707130aa6bb570 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Mon, 1 May 2023 22:04:40 +0200 Subject: Add users conditional for sss Skip failing local users management on machines using sssd. Signed-off-by: Georg Pfuetzenreuter --- salt/common/suse.sls | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'salt') diff --git a/salt/common/suse.sls b/salt/common/suse.sls index 0ec8894..21889c6 100644 --- a/salt/common/suse.sls +++ b/salt/common/suse.sls @@ -8,7 +8,11 @@ include: - profile.seccheck - profile.zypp - 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 + {%- endif %} - .ssh - postfix.config -- cgit v1.2.3