From 93f6641a166f3964a4324eb7d13272482e77c21f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 9 Dec 2022 10:33:23 -0500 Subject: [PATCH] Carry deployment hook through to firstboot --- confluent_osdeploy/el8/profiles/default/kickstart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/confluent_osdeploy/el8/profiles/default/kickstart b/confluent_osdeploy/el8/profiles/default/kickstart index 0fc20d83..9d050461 100644 --- a/confluent_osdeploy/el8/profiles/default/kickstart +++ b/confluent_osdeploy/el8/profiles/default/kickstart @@ -87,6 +87,12 @@ fi if [ -z "$confluent_mgr" ]; then confluent_mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server_v6: } + if [ -z "$confluent_mgr" ]; then + confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) + confluent_mgr=${confluent_mgr#deploy_server: } + else + confluent_mgr="[$confluent_mgr]" + fi confluent_mgr="[$confluent_mgr]" fi curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/prechroot.sh > /tmp/postinst.sh @@ -115,6 +121,12 @@ fi if [ -z "$confluent_mgr" ]; then confluent_mgr=$(grep ^deploy_server_v6: /etc/confluent/confluent.deploycfg) confluent_mgr=${confluent_mgr#deploy_server_v6: } + if [ -z "$confluent_mgr" ]; then + confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg) + confluent_mgr=${confluent_mgr#deploy_server: } + else + confluent_mgr="[$confluent_mgr]" + fi confluent_mgr="[$confluent_mgr]" fi curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/post.sh > /tmp/postinst.sh