From 9c079a4203fda3827f8da5282b287d9b78e634f8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Aug 2020 18:56:23 -0400 Subject: [PATCH] Generate ifidx file Use apiclient to generate ifidx for nmcli c u --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index e775762a..f16cbd40 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -8,6 +8,7 @@ # method is to edit the kicktstart file and comment out or # delete %include /tmp/partitioning +/usr/libexec/platform-python /etc/confluent/apiclient >& /dev/null nicname=$(ip link|grep ^$(cat /tmp/confluent.ifidx): | awk '{print $2}' | awk -F: '{print $1}') nmcli c u $nicname nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')