replace Tinc VPN with WireGuard

https://github.com/status-im/infra-hq/issues/58

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-05-19 23:00:33 +02:00
parent 304a3044ca
commit 6a4fe922a6
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ ID Matchers Starts At
# Details # 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 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). The main configuration resides in [`templates/alertmanager.yml.j2`](templates/alertmanager.yml.j2).

View File

@ -7,7 +7,7 @@
- name: '{{ alertmanager_service_name }}' - name: '{{ alertmanager_service_name }}'
tags: ['metrics', 'alertmanager'] tags: ['metrics', 'alertmanager']
port: '{{ alertmanager_webui_port }}' port: '{{ alertmanager_webui_port }}'
address: '{{ ansible_local.tinc.vpn_ip }}' address: '{{ ansible_local.wireguard.vpn_ip }}'
checks: checks:
- id: alertmanager-status - id: alertmanager-status
name: Alert Manager status name: Alert Manager status

View File

@ -20,7 +20,7 @@ services:
- '--config.file=/etc/alertmanager.yml' - '--config.file=/etc/alertmanager.yml'
- '--log.level={{ alertmanager_cont_log_lvl }}' - '--log.level={{ alertmanager_cont_log_lvl }}'
- '--web.external-url={{ alertmanager_url }}' - '--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.listen-address=0.0.0.0:{{ alertmanager_cluster_port }}'
- '--cluster.probe-timeout={{ alertmanager_probe_timeout }}' - '--cluster.probe-timeout={{ alertmanager_probe_timeout }}'
- '--cluster.probe-interval={{ alertmanager_probe_interval }}' - '--cluster.probe-interval={{ alertmanager_probe_interval }}'