2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-13 03:08:14 +00:00

Add firstboot to EL

Also add 'mgt_server' rather than 'ipv4_server'. Will move to this.
The server should be able to dictate the right address without the
deploymennt image having to keep track.
This commit is contained in:
Jarrod Johnson 2020-05-15 16:03:25 -04:00
parent cab2310f35
commit a5adcbd496
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)
mgr=$(grep mgt_server /etc/confluent/confluent.deploycfg|awk '{print $2}')
curl --capath /etc/confluent/tls -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
systemctl disable firstboot
rm /etc/systemd/system/firstboot.service

View File

@ -189,6 +189,7 @@ def get_nic_config(configmanager, node, ip=None, mac=None, ifidx=None,
net, prefix, svrip = net
candsrvs.append(svrip)
cfgdata['ipv4_server'] = svrip
cfgdata['mgt_server'] = svrip
for candidate in cfgbyname:
if cfgbyname[candidate].get('ipv4_method', None) == 'dhcp':
dhcprequested = True