2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 18:42:29 +00:00

Add Confluent UUID to identity image

The UUID and tls material usually comes from site, but some
OSes may depend entirely on the identity image, so
make the UUID available that way as well.
This commit is contained in:
Jarrod Johnson
2025-08-01 15:53:38 -04:00
parent 8cfbf40a2e
commit 85ddf528a2

View File

@@ -21,6 +21,7 @@
import confluent.messages as msg
import confluent.netutil as netutil
import eventlet.green.subprocess as subprocess
import confluent.config.configmanager as cfm
import os
import shutil
import tempfile
@@ -51,6 +52,7 @@ def create_ident_image(node, configmanager):
# It would be a reasonable enhancement to list all collective server addresses
# restricted by 'managercandidates'
ident['deploy_servers'] = []
ident['confluent_uuid'] = cfm.get_global('confluent_uuid')
for myaddr in netutil.get_my_addresses():
myaddr = socket.inet_ntop(myaddr[0], myaddr[1])
ident['deploy_servers'].append(myaddr)