kedge/ansible/roles/wireguard-bootstrap/templates/wg0.conf.j2
Tyler King 6058e62348 Initial commit: Kedge network automation platform
Go-based network automation with YANG models, gRPC, Ansible,
Terraform, and Kubernetes integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 12:09:30 -05:00

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 %}