diff options
author | Georg Pfuetzenreuter | 2023-05-01 23:15:45 +0200 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-05-01 23:15:45 +0200 |
commit | 16827d731809bacc27206fc6b8f547e64c4d609d (patch) | |
tree | 981e1ca77db8a0e2869590e01f4147b30f2f591f /salt/common/suse.sls | |
parent | bfeeb8673ebb017f5b8fe3505663c8d450be53f0 (diff) | |
parent | 51e33815df89a649f21b7c6d62707130aa6bb570 (diff) | |
download | salt-16827d731809bacc27206fc6b8f547e64c4d609d.tar.gz salt-16827d731809bacc27206fc6b8f547e64c4d609d.tar.bz2 salt-16827d731809bacc27206fc6b8f547e64c4d609d.zip |
Merge pull request 'Add users conditional for sss' (#61) from skip-users-if-sss into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/61
Diffstat (limited to 'salt/common/suse.sls')
-rw-r--r-- | salt/common/suse.sls | 4 |
1 files changed, 4 insertions, 0 deletions
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 |