From c5a8b2c72841ad0b58fb36870624737634778056 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 13 Oct 2018 03:10:03 +0200 Subject: HTMLize instructions and use jinja2 to render them Only fixed tasks for the kpov_2018 class for now. --- kpov_judge/tasks/set_ip_static_dhcp/task.py | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kpov_judge/tasks/set_ip_static_dhcp') diff --git a/kpov_judge/tasks/set_ip_static_dhcp/task.py b/kpov_judge/tasks/set_ip_static_dhcp/task.py index aac93f7..0d11f43 100644 --- a/kpov_judge/tasks/set_ip_static_dhcp/task.py +++ b/kpov_judge/tasks/set_ip_static_dhcp/task.py @@ -1,30 +1,30 @@ # kpov_util should be imported by add_assignment.py instructions = { - 'si':""" -Ustvari tri navidezne racunalnike. Za prvega -uporabi sliko diska simpleArbiterDhcpGW, za drugega sliko diska -maliNetworkManager, za tretjega sliko diska maliBrezNetworkManager. -Racunalnike imenujmo enako kot slike diska. -Na maliBrezNetworkManager poskrbi, da networkmanager ne bo več skrbel -za omrežni vmesnik, temveč bosta delovala ukaza ifup in ifdown. - -Na maliNetworkManager nastavi IP naslov {IP_NM} ter DNS {DNS_NM}. -Na maliBrezNetworkManager nastavi IP naslov {IP_static} ter DNS {DNS_static}. -""", - 'en':"""Create three virtual machines. Use simpleArbiterDhcpGW as the -disk image for the first, maliNetworkManager as the disk image for the second -and maliBrezNetworkManager for the third. The virtual machine names can match -the disks. - -Make sure that on maliBrezNetworkManager ifup/ifdown can be used to configure -the network and that NetworkManager, while still installed, will not manage -the network interface. The IP should be {IP_static} and the computer should -use the server {DNS_static} as it's DNS. - -On maliNetworkManager, set the IP address to {IP_NM} and use {DNS_NM} -as the DNS. -""" + 'si': '''\ +

+Ustvari tri navidezne računalnike. Za prvega uporabi sliko diska simpleArbiterDhcpGW, za drugega sliko diska +maliNetworkManager, za tretjega sliko diska maliBrezNetworkManager. Računalnike imenujmo enako kot slike diska. + +

+Na maliBrezNetworkManager poskrbi, da NetworkManager ne bo več skrbel za omrežni vmesnik, temveč bosta delovala ukaza ifup in ifdown. + +

+Na maliNetworkManager nastavi naslov IP {{IP_NM}} ter DNS {{DNS_NM}}. + +

+Na maliBrezNetworkManager nastavi naslov IP {{IP_static}} ter DNS {{DNS_static}}. +''', + 'en': '''\ +

+Create three virtual machines. Use simpleArbiterDhcpGW as the disk image for the first, maliNetworkManager as the disk image for the second, and maliBrezNetworkManager for the third. The virtual machine names can match the disks. + +

+Make sure that on maliBrezNetworkManager ifup and ifdown can be used to configure the network and that NetworkManager, while still installed, will not manage the network interface. The IP should be {{IP_static}} and the computer should use the server {{DNS_static}} for DNS. + +

+On maliNetworkManager, set the IP address to {{IP_NM}} and use {{DNS_NM}} for DNS. +''', } computers = { -- cgit v1.2.1