2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-03-15 16:07:47 +00:00

Change EL8 initramfs to use apiclient

This is a richer client that provides
the extended information required
for more accurate network autodetect.
This commit is contained in:
Jarrod Johnson 2020-06-30 15:02:10 -04:00
parent 1a664f669c
commit 2f4dd240dd
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ umask 0077
echo $apikey > /etc/confluent.apikey
umask $oum
mgr="[$mgr]"
curl -f -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/deploycfg > /tmp/confluent.deploycfg
/usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-api/self/deploycfg > /tmp/confluent.deploycfg
dnsdomain=$(grep ^dnsdomain: /tmp/confluent.deploycfg)
dnsdomain=${dnsdomain#dnsdomain: }

View File

@ -19,5 +19,6 @@ for i in /ssh/*.ca; do
done
cp /etc/confluent.apikey /sysroot/etc/
cp /etc/confluent.apikey /sysroot/etc/confluent/
cp /opt/confluent/bin/apiclient /sysroot/etc/confluent
cp /tmp/confluent.deploycfg /tmp/confluent.info /sysroot/etc/
cp /tmp/confluent.deploycfg /tmp/confluent.info /sysroot/etc/confluent