Layout refactor
Also included provisioning for htpc host
This commit is contained in:
parent
f90702c7b8
commit
970f7489fb
103 changed files with 782 additions and 893 deletions
25
templates/xps/network/wg0.netdev.j2
Normal file
25
templates/xps/network/wg0.netdev.j2
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[NetDev]
|
||||
Name={{ wireguard.interface }}
|
||||
Kind=wireguard
|
||||
Description=WireGuard tunnel {{ wireguard.interface }}
|
||||
|
||||
[WireGuard]
|
||||
PrivateKeyFile={{ wireguard.private_key_path }}
|
||||
RouteTable=main
|
||||
|
||||
{% for peer in wireguard.peers %}
|
||||
[WireGuardPeer]
|
||||
PublicKey={{ peer.public_key }}
|
||||
PresharedKeyFile={{ peer.preshared_key_path }}
|
||||
{% for ip in peer.allowed_ips %}
|
||||
AllowedIPs={{ ip }}
|
||||
{% endfor %}
|
||||
{% if peer.endpoint %}
|
||||
Endpoint={{ peer.endpoint }}
|
||||
{% endif %}
|
||||
{% if not loop.last %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
10
templates/xps/network/wg0.network.j2
Normal file
10
templates/xps/network/wg0.network.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
Name={{ wireguard.interface }}
|
||||
|
||||
[Network]
|
||||
Address={{ wireguard.ip }}/{{ wireguard.prefix }}
|
||||
DNS={{ wireguard.dns }}
|
||||
Domains={{ wireguard.domains | join(' ') }}
|
||||
BindCarrier={{ wireless_interface }}
|
||||
25
templates/xps/network/wg1.netdev.j2
Normal file
25
templates/xps/network/wg1.netdev.j2
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[NetDev]
|
||||
Name={{ wireguard.interface }}
|
||||
Kind=wireguard
|
||||
Description=WireGuard tunnel {{ wireguard.interface }}
|
||||
|
||||
[WireGuard]
|
||||
PrivateKeyFile={{ wireguard.private_key_path }}
|
||||
RouteTable=main
|
||||
|
||||
{% for peer in wireguard.peers %}
|
||||
[WireGuardPeer]
|
||||
PublicKey={{ peer.public_key }}
|
||||
PresharedKeyFile={{ peer.preshared_key_path }}
|
||||
{% for ip in peer.allowed_ips %}
|
||||
AllowedIPs={{ ip }}
|
||||
{% endfor %}
|
||||
{% if peer.endpoint %}
|
||||
Endpoint={{ peer.endpoint }}
|
||||
{% endif %}
|
||||
{% if not loop.last %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
10
templates/xps/network/wg1.network.j2
Normal file
10
templates/xps/network/wg1.network.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
Name={{ wireguard.interface }}
|
||||
|
||||
[Network]
|
||||
Address={{ wireguard.ip }}/{{ wireguard.prefix }}
|
||||
DNS={{ wireguard.dns }}
|
||||
Domains={{ wireguard.domains | join(' ') }}
|
||||
BindCarrier={{ wireless_interface }}
|
||||
20
templates/xps/network/wlan0-frans.network.j2
Normal file
20
templates/xps/network/wlan0-frans.network.j2
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
Name={{ wireless_interface }}
|
||||
SSID={{ frans_network_ssid }}
|
||||
|
||||
[Network]
|
||||
Address={{ frans_network_address }}
|
||||
Gateway={{ frans_network_gateway }}
|
||||
DNS={{ frans_network_dns }}
|
||||
MulticastDNS=yes
|
||||
DNSOverTLS=yes
|
||||
DNSSEC=yes
|
||||
DHCP=no
|
||||
LinkLocalAddressing=no
|
||||
IPv6AcceptRA=no
|
||||
IPv6SendRA=no
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=routable
|
||||
20
templates/xps/network/wlan0-local.network.j2
Normal file
20
templates/xps/network/wlan0-local.network.j2
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Match]
|
||||
Name={{ wireless_interface }}
|
||||
SSID={{ local_network_ssid }}
|
||||
|
||||
[Network]
|
||||
Address={{ local_network_address }}
|
||||
Gateway={{ local_network_gateway }}
|
||||
DNS={{ local_network_dns }}
|
||||
MulticastDNS=yes
|
||||
DNSOverTLS=yes
|
||||
DNSSEC=yes
|
||||
DHCP=no
|
||||
LinkLocalAddressing=no
|
||||
IPv6AcceptRA=no
|
||||
IPv6SendRA=no
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=routable
|
||||
12
templates/xps/network/wlan0.network.j2
Normal file
12
templates/xps/network/wlan0.network.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Match]
|
||||
Name={{ wireless_interface }}
|
||||
|
||||
[Network]
|
||||
DNS={{ default_network_dns }}
|
||||
DNSOverTLS=yes
|
||||
DNSSEC=yes
|
||||
DHCP=yes
|
||||
IgnoreCarrierLoss=3s
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=routable
|
||||
Loading…
Add table
Add a link
Reference in a new issue