2020-05-14 17:36:23 +00:00
|
|
|
#!/bin/sh
|
2020-05-14 18:49:53 +00:00
|
|
|
|
|
|
|
# This script runs at the end of the final boot, updating status
|
|
|
|
|
2020-05-14 17:36:23 +00:00
|
|
|
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)
|
2020-05-14 18:49:53 +00:00
|
|
|
curl -f -X POST -d "status: complete" https://$mgr/confluent-api/self/updatestatus
|