From 269d9c79d1253120daa75ec5055e1cc792f4fb1a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 10 Sep 2021 12:28:00 -0400 Subject: [PATCH] Let functions set confluent_mgr The better logic in functions is used instead of the simplistic logic. --- .../genesis/initramfs/opt/confluent/bin/rungenesis | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index 49ed3dca..dfa95875 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -151,11 +151,12 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do done /usr/sbin/sshd confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | awk '{print $2}') -confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg | awk '{print $2}') -export confluent_profile confluent_mgr -echo "Running https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/onboot.sh" +export confluent_profile /usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions . /tmp/functions +set_confluent_vars +export confluent_mgr +echo "Running https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/onboot.sh" run_remote onboot.sh while :; do bash