mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 19:40:12 +00:00
b67140248e
Use a more neutral name for the deployment server target. It is still ipv4 only for the moment, but easier to pull in ipv6 support when not having to change paths that don't care.
8 lines
451 B
Bash
8 lines
451 B
Bash
#!/bin/sh
|
|
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
|
|
apikey=$(cat /etc/confluent/confluent.apikey)
|
|
mgr=$(grep deploy_server /etc/confluent/confluent.deploycfg|awk '{print $2}')
|
|
curl --capath /etc/confluent/tls -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
|
|
systemctl disable firstboot
|
|
rm /etc/systemd/system/firstboot.service
|