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:
parent
cab2310f35
commit
a5adcbd496
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user