Automated connection between OpenBAO and ESO

This commit is contained in:
Richard Robert Reitz 2025-04-28 10:10:34 +02:00
parent a090677c0f
commit b2e91d0163

View file

@ -4,6 +4,7 @@ server:
- -c
- |
echo --- unseal workaround
echo --- unseal workaround > /tmp/eso_posthook
sleep 10
bao operator init >> /tmp/init.txt
@ -16,7 +17,9 @@ server:
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
rm /tmp/init.txt
echo --- provide OpenBAO secret to ESO
echo --- provide OpenBAO secret to ESO >> /tmp/eso_posthook
if [[ "$(uname -m)" == "x86_64" ]]; then
wget "https://dl.k8s.io/release/$(wget https://dl.k8s.io/release/stable.txt -q -O -)/bin/linux/amd64/kubectl" -O /tmp/kubectl_eso