mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-01 15:06:06 +00:00
Move hostname setting to pre.sh in suse16
hostname command is not in the initramfs
This commit is contained in:
@@ -232,7 +232,6 @@ echo $ifname > /run/confluent/ifname
|
||||
dnsdomain=$(grep ^dnsdomain: /etc/confluent/confluent.deploycfg)
|
||||
dnsdomain=${dnsdomain#dnsdomain: }
|
||||
hostname=$nodename
|
||||
hostname $nodename
|
||||
if [ ! -z "$dnsdomain" ] && [ "$dnsdomain" != "null" ]; then
|
||||
hostname=$hostname.$dnsdomain
|
||||
fi
|
||||
|
||||
@@ -32,6 +32,7 @@ if [[ "$deployserver" == *":"* ]]; then
|
||||
deployserver="[$deployserver]"
|
||||
fi
|
||||
source /etc/confluent/functions
|
||||
hostname $(grep ^NODENAME: /etc/confluent/confluent.info|awk '{print $2}')
|
||||
run_remote_parts pre.d
|
||||
sed -i s!%%DEPLOYER%%!$deployserver!g /tmp/autoinstall.json
|
||||
sed -i s!%%PROFILE%%!$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}')!g /tmp/autoinstall.json
|
||||
|
||||
Reference in New Issue
Block a user