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:
parent
c4379e3fd2
commit
c0bd9f8bfb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user