mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 02:22:31 +00:00
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.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user