From 6a4fe922a66a4dc443ee35a7b8e3015157376f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 19 May 2021 23:00:33 +0200 Subject: [PATCH] replace Tinc VPN with WireGuard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/status-im/infra-hq/issues/58 Signed-off-by: Jakub SokoĊ‚owski --- README.md | 2 +- tasks/consul.yml | 2 +- templates/docker-compose.yml.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd6349d..e947599 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ ID Matchers Starts At # Details -AlertManager runs in a cluster to achieve high availability. The peer connect via [Tinc VPN](https://github.com/status-im/infra-role-bootstrap/tree/master/tasks/tinc). +AlertManager runs in a cluster to achieve high availability. The peer connect via [WireGuard VPN](https://github.com/status-im/infra-role-wireguard). The service listens on `:9093` and the Prometheus instance connects to that port via the VPN to inform it of threshold breaches. The main configuration resides in [`templates/alertmanager.yml.j2`](templates/alertmanager.yml.j2). diff --git a/tasks/consul.yml b/tasks/consul.yml index 5b50e9b..38d0410 100644 --- a/tasks/consul.yml +++ b/tasks/consul.yml @@ -7,7 +7,7 @@ - name: '{{ alertmanager_service_name }}' tags: ['metrics', 'alertmanager'] port: '{{ alertmanager_webui_port }}' - address: '{{ ansible_local.tinc.vpn_ip }}' + address: '{{ ansible_local.wireguard.vpn_ip }}' checks: - id: alertmanager-status name: Alert Manager status diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index f7fa829..fe934eb 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -20,7 +20,7 @@ services: - '--config.file=/etc/alertmanager.yml' - '--log.level={{ alertmanager_cont_log_lvl }}' - '--web.external-url={{ alertmanager_url }}' - - '--cluster.advertise-address={{ ansible_local.tinc.vpn_ip }}:{{ alertmanager_cluster_port }}' + - '--cluster.advertise-address={{ ansible_local.wireguard.vpn_ip }}:{{ alertmanager_cluster_port }}' - '--cluster.listen-address=0.0.0.0:{{ alertmanager_cluster_port }}' - '--cluster.probe-timeout={{ alertmanager_probe_timeout }}' - '--cluster.probe-interval={{ alertmanager_probe_interval }}'