prole/infrastructure/roles/netplan_static/templates/99-ansible-static.yaml.j2
chrisfu cf6d79f505 ansible: fix netplan_static YAML, dashboard conky pkg, mariadb vault vars
- netplan_static: avoid Jinja whitespace/indent YAML breakage with trim_blocks; set /etc/netplan perms to 0600; add render+YAML-parse test

- dashboard: install concrete conky provider (conky-all) and add defaults test; wire role into site.yml; document dashboard service usage

- mariadb: add mariadb parent group for group_vars scope; add group defaults deriving datastore password from vault; add vault entry; add vars resolution test; remove host overrides

- misc: update port-forward mappings, generated prole.cfg, and bump prole-db version

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-05 23:02:42 -08:00

20 lines
550 B
Django/Jinja

network:
version: 2
renderer: NetworkManager
ethernets:
{{ netplan_static_iface_effective }}:
dhcp4: false
dhcp6: false
addresses:
- {{ netplan_static_address }}
{% if (netplan_static_gateway4_effective | default('') | length) > 0 %}
gateway4: {{ netplan_static_gateway4_effective }}
{% endif %}
{% if (netplan_static_nameservers_effective | default([])) | length > 0 %}
nameservers:
addresses:
{% for ns in netplan_static_nameservers_effective %}
- {{ ns }}
{% endfor %}
{% endif %}