prole/infrastructure/roles/netplan_static/templates/99-ansible-static.yaml.j2
chrisfu 125da5669b Fix k3s CNPG image registry resolution and import flows
- In k3s mode, resolve CNPG images to a cluster-reachable internal registry and ignore k3d/localhost-ish registry values.

- Avoid any k3d cluster/containerd interactions when PROLE_MODE=k3s; add a preflight-image action.

- Extend init scripts and Ansible k3s/mariadb import tasks/playbooks for the updated k3s flow.

- Add/extend installer UI + tests around services and action/milestone helpers.

- Add merlin MariaDB provisioning playbook, services init-script test, and a k3s datastore SQL snapshot.

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

20 lines
605 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 | map('trim') | reject('equalto','') | unique | sort) %}
- {{ ns }}
{% endfor %}
{% endif %}