Automated connection between OpenBAO and ESO
This commit is contained in:
parent
a090677c0f
commit
b2e91d0163
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ server:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
echo --- unseal workaround
|
echo --- unseal workaround
|
||||||
|
echo --- unseal workaround > /tmp/eso_posthook
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
bao operator init >> /tmp/init.txt
|
bao operator init >> /tmp/init.txt
|
||||||
|
@ -15,8 +16,10 @@ server:
|
||||||
echo $(grep "Unseal Key 4:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key4.txt
|
echo $(grep "Unseal Key 4:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key4.txt
|
||||||
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
|
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
|
||||||
rm /tmp/init.txt
|
rm /tmp/init.txt
|
||||||
|
|
||||||
|
|
||||||
echo --- provide OpenBAO secret to ESO
|
echo --- provide OpenBAO secret to ESO
|
||||||
|
echo --- provide OpenBAO secret to ESO >> /tmp/eso_posthook
|
||||||
|
|
||||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
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
|
wget "https://dl.k8s.io/release/$(wget https://dl.k8s.io/release/stable.txt -q -O -)/bin/linux/amd64/kubectl" -O /tmp/kubectl_eso
|
||||||
|
|
Loading…
Reference in a new issue