From 57b460d77fc034ff00555bf674bae5de2a350c1c Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Tue, 31 Mar 2015 10:20:35 +0000 Subject: Added setup of /etc/network/interfaces according to params for task 06 preparation git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@293 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/isc_dhcp_live_boot/task.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'kpov_judge/tasks/isc_dhcp_live_boot') diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/task.py b/kpov_judge/tasks/isc_dhcp_live_boot/task.py index 1f1278b..78dd05c 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/task.py +++ b/kpov_judge/tasks/isc_dhcp_live_boot/task.py @@ -196,6 +196,16 @@ prompt 0 timeout 0 # {}""".format(params['TFTP_STRING']) d.write('/mnt/syslinux.cfg', s) - - + d = templates['SimpleArbiter'] + s = """auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +iface eth1 inet static + address {} + netmask 255.192.0.0 +""".format(params['IP_GW']) + d.write("/etc/interfaces", s) -- cgit v1.2.1