2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-13 08:49:37 +00:00

Insert domain into EL deploy

This hopefully sets search path up well.
This commit is contained in:
Jarrod Johnson 2020-05-20 12:08:05 -04:00
parent c4379e3fd2
commit c0bd9f8bfb

View File

@ -32,6 +32,12 @@ umask $oum
mgr="[$mgr]"
curl -f -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/deploycfg > /tmp/confluent.deploycfg
dnsdomain=$(grep ^dnsdomain: /tmp/confluent.deploycfg)
dnsdomain=${dnsdomain#dnsdomain: }
hostname=$nodename
if [ ! -z "$dnsdomain" ] && [ "$dnsdomain" != "null" ]; then
hostname=$hostname.$dnsdomain
fi
mgr=$(grep ^deploy_server: /tmp/confluent.deploycfg)
mgr=${mgr#deploy_server: }
profilename=$(grep ^profile: /tmp/confluent.deploycfg)