mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
ac2e41bd78
Derive from EL8 with some EL7 vintage accomodations
25 lines
979 B
Bash
25 lines
979 B
Bash
#!/bin/sh
|
|
|
|
# This script is executed on the first boot after install has
|
|
# completed. It is best to edit the middle of the file as
|
|
# noted below so custom commands are executed before
|
|
# the script notifies confluent that install is fully complete.
|
|
|
|
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}')
|
|
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}')
|
|
cat /etc/confluent/tls/*.pem >> /etc/pki/tls/certs/ca-bundle.crt
|
|
export nodename mgr profile
|
|
. /etc/confluent/functions
|
|
|
|
|
|
# Here is the most appropriate place to customize, for example:
|
|
#run_remote script.sh
|
|
#run_remote_python script.py
|
|
|
|
|
|
curl -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
|