diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh index 35097b7e..3586facc 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh @@ -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: } diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh index 5c241a4f..543e5291 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-pivot/01-confluent.sh @@ -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