2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Have osdeploy -p enable tftp

This makes the procedure shorter.
This commit is contained in:
Jarrod Johnson 2020-07-30 13:57:42 -04:00
parent fa934ce334
commit d204eedb76

View File

@ -56,7 +56,12 @@ def install_tftp_content():
tftplocation = cand
break
if not tftplocation:
raise Exception('Unable to detect an installed tftp location')
raise Exception('Unable to detect an installed tftp location (check that tftp server is installed)')
if os.path.exists('/usr/lib/systemd/system/tftp.socket'):
subprocess.check_call(['systemctl', 'enable', 'tftp.socket', '--now'])
else:
print(
'Unable to automatically enable TFTP server, please enable manually')
tftplocation = '{0}/confluent/x86_64'.format(tftplocation)
try:
os.makedirs(tftplocation)