From f55dc8104b619d503c0aeea30e49d8b16161dbcc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Aug 2020 18:15:27 -0400 Subject: [PATCH] Bring up the nic correctly during pre nmcli can bring up the link with proper lla like confluent.info indicates. --- .../el8/profiles/default/scripts/add_local_repositories | 1 - confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories b/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories index b9bf82b4..e97b6837 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories +++ b/confluent_osdeploy/el8/profiles/default/scripts/add_local_repositories @@ -8,7 +8,6 @@ profile = None with open('/etc/confluent/confluent.deploycfg') as dplcfgfile: lines = dplcfgfile.read().split('\n') for line in lines: - print(repr(line)) if line.startswith('deploy_server:'): _, server = line.split(' ', 1) if line.startswith('profile: '): diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index 7ed98f5e..e775762a 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -8,6 +8,8 @@ # method is to edit the kicktstart file and comment out or # delete %include /tmp/partitioning +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}') locale=$(grep ^locale: /etc/confluent/confluent.deploycfg) locale=${locale#locale: }