From 22c89214554448bf77875d86da2d0464da8902f1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 17 Sep 2025 09:25:40 -0400 Subject: [PATCH] Place identity files loose in directory as well Some OS deployment mechanism may wish to convey the identity information more loosely. For those, it's convenient if the files are loose instead of needing extraction from a VFAT image. --- confluent_server/confluent/plugins/deployment/identimage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/plugins/deployment/identimage.py b/confluent_server/confluent/plugins/deployment/identimage.py index c41c6e8f..1fe7b624 100644 --- a/confluent_server/confluent/plugins/deployment/identimage.py +++ b/confluent_server/confluent/plugins/deployment/identimage.py @@ -62,6 +62,9 @@ def create_ident_image(node, configmanager): with open(os.path.join(tmpd, 'cnflnt.jsn'), 'w') as jsonout: json.dump(ident, jsonout) shutil.copytree('/var/lib/confluent/public/site/tls', os.path.join(tmpd, 'tls')) + mkdirp('/var/lib/confluent/private/identity_files/') + shutil.copy(os.path.join(tmpd, 'cnflnt.yml'), '/var/lib/confluent/private/identity_files/{0}.yml'.format(node)) + shutil.copy(os.path.join(tmpd, 'cnflnt.jsn'), '/var/lib/confluent/private/identity_files/{0}.json'.format(node)) mkdirp('/var/lib/confluent/private/identity_images/') imgname = '/var/lib/confluent/private/identity_images/{0}.img'.format(node) if os.path.exists(imgname):