chore: enable filebeat for all hosts

This commit is contained in:
2024-11-23 22:32:26 +00:00
parent b56c7e63e0
commit ca2cfa319c
7 changed files with 36 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
- apt-file
- htop
- ncdu
- gpg
- name: Ensure Opt dir exists and accessible
file:

View File

@@ -0,0 +1,5 @@
[Peer]
PublicKey = {{ hypervisor_wg_public_key }}
Endpoint= {{ hypervisor_internal_ip }}:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 21

View File

@@ -0,0 +1,11 @@
[Interface]
PrivateKey = <server_private_key>
Address = 10.0.0.1/24
ListenPort = 51820
{% for client in clients %}
# {{ client.name }}
[Peer]
PublicKey = <client1_public_key>
AllowedIPs = 10.0.0.{{ loop.index + }}/32
{% endfor %}