Skip to content

Commit

Permalink
make sure salt-shaptools states and modules are found
Browse files Browse the repository at this point in the history
workaround for SLES12
  • Loading branch information
yeoldegrove committed Jul 18, 2023
1 parent 52b330d commit 057d9ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions salt/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 057d9ea

Please sign in to comment.