diff --git a/content/articles/2022-10-14-lab-1.md b/content/articles/2022-10-14-lab-1.md index 35c765b..6c8f608 100644 --- a/content/articles/2022-10-14-lab-1.md +++ b/content/articles/2022-10-14-lab-1.md @@ -275,7 +275,6 @@ that will point at an `unbound` running on `lab.ipng.ch` itself. I can now create any file I'd like which may use variable substition and other jinja2 style templating. Take for example these two files: -{% raw %} ``` pim@lab:~/src/lab$ cat overlays/bird/common/etc/netplan/01-netcfg.yaml.j2 network: @@ -292,13 +291,12 @@ network: pim@lab:~/src/lab$ cat overlays/bird/common/etc/netns/dataplane/resolv.conf.j2 domain lab.ipng.ch -search{% for domain in lab.nameserver.search %} {{domain}}{%endfor %} +search{% for domain in lab.nameserver.search %} {{ domain }}{% endfor %} {% for resolver in lab.nameserver.addresses %} -nameserver {{resolver}} -{%endfor%} +nameserver {{ resolver }} +{% endfor %} ``` -{% endraw %} The first file is a [[NetPlan.io](https://netplan.io/)] configuration that substitutes the correct management IPv4 and IPv6 addresses and gateways. The second one enumerates a set of search domains and nameservers, so that