mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Construct tgz for site
This is needed for vmware deployment support.
This commit is contained in:
parent
fa9f9c1d99
commit
0bd6aae76f
@ -136,8 +136,12 @@ def initialize(cmdset):
|
||||
if res:
|
||||
sys.stderr.write('Error occurred while packing site initramfs')
|
||||
sys.exit(1)
|
||||
tmptarname = tmpname.replace('cpio', 'tgz')
|
||||
tarcmd = ['tar', 'czf', tmptarname] + topack
|
||||
subprocess.check_call(tarcmd)
|
||||
os.chdir(opath)
|
||||
os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio')
|
||||
os.rename(tmptarname, '/var/lib/confluent/public/site/initramfs.tgz')
|
||||
if cmdset.k:
|
||||
with open('/etc/ssh/ssh_known_hosts', 'a+b') as skh:
|
||||
for cafile in glob.glob('/var/lib/confluent/public/site/ssh/*.ca'):
|
||||
@ -149,7 +153,7 @@ def initialize(cmdset):
|
||||
# ok, also need to think on how to handle getinstalldisk
|
||||
if not os.path.exists('/etc/confluent/srvcert.pem'):
|
||||
subprocess.check_call(['collective', 'gencert'])
|
||||
# TODO: check selinux and segetbool for httpd_can_network_connect
|
||||
# TODO: check selinux and segetbool for httpd_can_network_connect
|
||||
# tftp-server available and enabled?
|
||||
# httpd available and enabled?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user