2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Bring up the nic correctly during pre

nmcli can bring up the link with proper lla like confluent.info
indicates.
This commit is contained in:
Jarrod Johnson 2020-08-06 18:15:27 -04:00
parent 3812fc93ff
commit f55dc8104b
2 changed files with 2 additions and 1 deletions

View File

@ -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: '):

View File

@ -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: }