Go-based network automation with YANG models, gRPC, Ansible, Terraform, and Kubernetes integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
364 B
Django/Jinja
12 lines
364 B
Django/Jinja
[Interface]
|
|
PrivateKey = {{ lookup('file', '/etc/wireguard/private.key') }}
|
|
ListenPort = {{ kedge_wg_port }}
|
|
Address = {{ wg_address | default('10.100.0.1/24') }}
|
|
|
|
{% for peer in wg_peers | default([]) %}
|
|
[Peer]
|
|
PublicKey = {{ peer.public_key }}
|
|
Endpoint = {{ peer.endpoint }}
|
|
AllowedIPs = {{ peer.allowed_ips | join(', ') }}
|
|
PersistentKeepalive = 25
|
|
{% endfor %}
|