2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-10 18:12:30 +00:00

Store device for future use in ubuntu deployment

This commit is contained in:
Jarrod Johnson
2025-10-02 14:28:46 -04:00
parent a9d15de156
commit 2d29813320
2 changed files with 3 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ while ! grep NODENAME /custom-installation/confluent/confluent.info; do
[ -z "$1" ] || DEVICE=$1
shift
configure_networking
echo $DEVICE > /tmp/autodetectnic
for dsrv in $deploysrvs; do
(if openssl s_client -connect $dsrv:443 > /dev/null 2>&1; then
echo $dsrv > /run/confirmednic
@@ -84,6 +85,7 @@ while ! grep NODENAME /custom-installation/confluent/confluent.info; do
done
deploysrvs=$(cat /run/confirmednic)
rm /run/confirmednic
fi
MGR=$deploysrvs
NODENAME=$(grep ^nodename: /tmp/idntmnt/cnflnt.yml | awk '{print $2}')

View File

@@ -67,6 +67,7 @@ while ! grep NODENAME /custom-installation/confluent/confluent.info; do
[ -z "$1" ] || DEVICE=$1
shift
configure_networking
echo $DEVICE > /tmp/autodetectnic
for dsrv in $deploysrvs; do
(if openssl s_client -connect $dsrv:443 > /dev/null 2>&1; then
echo $dsrv > /run/confirmednic