diff options
Diffstat (limited to 'kpov_judge/tasks/isc_dhcp_live_boot')
-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) |