From 057d9ea3e54c0cc85bb049bcd900146e3b838af1 Mon Sep 17 00:00:00 2001 From: Eike Waldt Date: Tue, 18 Jul 2023 09:56:19 +0200 Subject: [PATCH] make sure salt-shaptools states and modules are found workaround for SLES12 --- salt/provision.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/salt/provision.sh b/salt/provision.sh index c96c10e5e..318287f27 100644 --- a/salt/provision.sh +++ b/salt/provision.sh @@ -158,6 +158,19 @@ predeploy () { deploy () { # Execute SAP and HA installation with the salt formulas if [[ $(get_grain role) =~ .*_node ]]; then + # make sure salt-shaptools states and modules are found + # workaround for SLES12 + source /etc/os-release + if [[ $VERSION_ID =~ ^12\.? ]]; then + sleep 10 + salt-call --local \ + --log-level=info \ + --log-file=/var/log/salt-deployment-sync.log \ + --log-file-level=info \ + --retcode-passthrough \ + $(salt_color_flag) \ + saltutil.sync_all + fi # shellcheck disable=SC2046 salt-call --local \ --log-level=$(get_grain provisioning_log_level) \