From 008bf33be3688b67b4a093627cf353f088a177ce Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 14 May 2020 17:16:26 -0400 Subject: [PATCH] Fix el8 prescript retrieval Mistakenly was using the deployer ip as profile. --- confluent_osdeploy/el8/profiles/default/kickstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/kickstart b/confluent_osdeploy/el8/profiles/default/kickstart index ddb048ad..54cfd07a 100644 --- a/confluent_osdeploy/el8/profiles/default/kickstart +++ b/confluent_osdeploy/el8/profiles/default/kickstart @@ -11,7 +11,7 @@ python3 %end %pre -profile=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}') +profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}') mgr=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}') curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst.sh . /tmp/preinst.sh @@ -19,7 +19,7 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst. %post --nochroot mkdir -p /mnt/sysimage/etc/confluent -profile=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}') +profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}') mgr=$(grep ipv4_server /etc/confluent.deploycfg |awk '{print $2}') curl -f https://$mgr/confluent-public/os/$profile/scripts/post.sh > /tmp/postinst.sh . /tmp/postinst.sh