Skip to content

Commit

Permalink
Fix order of Openstack post-deploy actions
Browse files Browse the repository at this point in the history
Need to unseal vault before configure script it run.
  • Loading branch information
dosaboy committed Dec 16, 2024
1 parent 9380901 commit 508505c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/helpers
Original file line number Diff line number Diff line change
Expand Up @@ -821,15 +821,15 @@ print_msgs ()
prev_key=$key
if ((count==max-1)); then
echo -e "\n[$prev_key]"
echo " - ${msg}"
echo -e " - ${msg}"
fi
elif [ "$prev_key" != "$key" ] || ((count==max-1)); then
echo -e "\n[$prev_key]"
# we need to do this in order to preserve order
for _msg in "${msg_cache[@]}"; do echo " - ${_msg}"; done
for _msg in "${msg_cache[@]}"; do echo -e " - ${_msg}"; done
msg_cache=()
prev_key=$key
((count==max-1)) && echo " - ${msg}"
((count==max-1)) && echo -e " - ${msg}"
fi
msg_cache[$idx]=$msg
((count+=1))
Expand Down
2 changes: 1 addition & 1 deletion openstack/pipeline/02configure
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ do
done
fi
has_opt --ceph && MOD_OVERLAYS+=( "ceph/vault-ceph.yaml" )
MOD_MSGS[vault.0]="run ./tools/vault-unseal-and-authorise.sh"
MOD_MSGS[0_common.0]="run ./tools/vault-unseal-and-authorise.sh\n - ${MOD_MSGS[0_common.0]}"
;;
--etcd-channel) #__OPT__type:<str>
MOD_PARAMS[__ETCD_SNAP_CHANNEL__]=$2
Expand Down

0 comments on commit 508505c

Please sign in to comment.