1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/docs/wireguard.md
Leonidas Spyropoulos 01f13f598e
docs: add wireguard docs
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2023-06-22 08:26:11 +01:00

823 B

WireGuard

Many of our servers communicate through wireguard VPN with each others. If you need to collect logs with loki and metrics with prometheus for dashboards you need to have a wiregauard IP.

Setting up

  1. For a new server add a new unused wireguard IP and set the following in host_vars/<fqdn>/misc

    wireguard_address: <wg-ip>
    wireguard_public_key: <wg-pubkey>
    
  2. Save the private key in a encypted vault in host_vars/<fqdn>/vault_wireguard.yml

    Tips:

  3. Execute wireguard and prometheus roles on monitoring.archlinux.org.yml playbook to get data from the server