diff options
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/isc_dhcp_live_boot/task.py | 13 | ||||
-rw-r--r-- | kpov_judge/tasks/public_ip_ssh/task.py | 6 |
2 files changed, 6 insertions, 13 deletions
diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/task.py b/kpov_judge/tasks/isc_dhcp_live_boot/task.py index b7dfbee..15d150e 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/task.py +++ b/kpov_judge/tasks/isc_dhcp_live_boot/task.py @@ -49,7 +49,7 @@ computers = { { 'name': 'student-DHCPServer', }, { 'name': 'bootable_usb', - 'options':{'readonly': True}, + 'options':{'readonly': False}, 'parts': [ {'dev': 'sdb1', 'path':'/mnt'} ], }, #{ 'name': 'CDROM', @@ -214,16 +214,9 @@ def task_check(results, params): def prepare_disks(templates, task_params, global_params): # d = templates['simpleArbiterDhcp'] d = templates['student-DHCPServer'] - s = """# use this exact config for your booting clients. -# search path for the c32 support libraries (libcom32, libutil etc.) -path -include menu.cfg -default vesamenu.c32 -prompt 0 -timeout 0 -# {}""".format(task_params['TFTP_STRING']) + s = """# {}""".format(task_params['TFTP_STRING']) d = templates['bootable_usb'] - d.write('/mnt/syslinux.cfg', s) + d.write_append('/mnt/syslinux.cfg', s) d = templates['simpleArbiterGW'] s = """auto lo iface lo inet loopback diff --git a/kpov_judge/tasks/public_ip_ssh/task.py b/kpov_judge/tasks/public_ip_ssh/task.py index 9640b27..b8f1d87 100644 --- a/kpov_judge/tasks/public_ip_ssh/task.py +++ b/kpov_judge/tasks/public_ip_ssh/task.py @@ -30,9 +30,9 @@ computers = { networks = { 'net1': {'public': True}, 'net2': {'public': True} } params_meta = { - 'peer_ip': {'descriptions': {'si': 'Naslov ssh strežnika'}, 'w': True, 'public':True, 'type': 'IP', 'generated': False}, - 'peer_user': {'descriptions': {'si': 'ime uporabnika'}, 'w': False, 'public': True, 'type': 'username', 'generated': True}, - 'peer_passwd': {'descriptions': {'si': 'geslo uporabnika'}, 'w': False, 'public': True, 'type': 'password', 'generated': True}, + 'peer_ip': {'descriptions': {'si': u'Naslov ssh strežnika'}, 'w': True, 'public':True, 'type': 'IP', 'generated': False}, + 'peer_user': {'descriptions': {'si': u'ime uporabnika'}, 'w': False, 'public': True, 'type': 'username', 'generated': True}, + 'peer_passwd': {'descriptions': {'si': u'geslo uporabnika'}, 'w': False, 'public': True, 'type': 'password', 'generated': True}, } def task(peer_ip, peer_user, peer_passwd): |