2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-26 15:21:18 +00:00

Call updatestatus upon completion of suse install

This commit is contained in:
Jarrod Johnson 2020-05-14 14:49:53 -04:00
parent 408d0a8673
commit 24288f988a
3 changed files with 7 additions and 2 deletions

View File

@ -78,7 +78,7 @@
<![CDATA[
#!/bin/sh
mgr=$(grep ^ipv._server /tmp/confluent.deploycfg|awk '{print $2}')
profile=$(grep ^profile: /tmp/confluent.deploycfg|sed -e 's/^rootpassword: //')
profile=$(grep ^profile: /tmp/confluent.deploycfg|sed -e 's/^profile: //')
proto=$(grep ^protocol: /tmp/confluent.deploycfg |awk '{print $2}')
curl $proto://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/pre.sh
. /tmp/pre.sh
@ -94,7 +94,7 @@ curl $proto://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/pre.sh
<![CDATA[
#!/bin/sh
mgr=$(grep ^ipv._server /tmp/confluent.deploycfg|awk '{print $2}')
profile=$(grep ^profile: /tmp/confluent.deploycfg|sed -e 's/^rootpassword: //')
profile=$(grep ^profile: /tmp/confluent.deploycfg|sed -e 's/^profile: //')
proto=$(grep ^protocol: /tmp/confluent.deploycfg |awk '{print $2}')
curl $proto://$mgr/confluent-public/os/$profile/scripts/post.sh > /tmp/post.sh
. /tmp/post.sh

View File

@ -1,6 +1,10 @@
#!/bin/sh
# This script runs at the end of the final boot, updating status
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
mgr=$(grep ^ipv._server /etc/confluent/confluent.deploycfg|awk '{print $2}')
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|sed -e 's/^rootpassword: //')
proto=$(grep ^protocol: /etc/confluent/confluent.deploycfg |awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)
curl -f -X POST -d "status: complete" https://$mgr/confluent-api/self/updatestatus

View File

@ -41,4 +41,5 @@ mkdir -p /mnt/etc/confluent
chmod 700 /mnt/etc/confluent
cp /tmp/confluent.* /mnt/etc/confluent/
cp -a /tls /mnt/etc/confluent/
cp -a /tls/*.0 /mnt/var/lib/ca-certificates/openssl