diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-31 10:20:35 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-31 10:20:35 +0000 |
commit | 57b460d77fc034ff00555bf674bae5de2a350c1c (patch) | |
tree | 2269de4a24bf25a63442b647ea47a2dc90023577 /kpov_judge | |
parent | 1e34a2217cba99f8847732c17da8f7be4dd09649 (diff) |
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
Diffstat (limited to 'kpov_judge')
-rw-r--r-- | kpov_judge/tasks/isc_dhcp_live_boot/task.py | 14 |
1 files changed, 12 insertions, 2 deletions
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) |