From 187894ff0d651f0f9924df9a40bc1085f4172612 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 27 Oct 2021 23:30:04 +0200 Subject: prometheus add basic auth to alert-manager --- inventory/host_vars/ch-mon.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inventory') diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml index 60361738..743a7136 100644 --- a/inventory/host_vars/ch-mon.yml +++ b/inventory/host_vars/ch-mon.yml @@ -64,6 +64,9 @@ prometheus_server_storage: prometheus_server_alertmanager: url: "127.0.0.1:9093" path_prefix: "/alertmanager/" + basic_auth: + username: server + password: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}" prometheus_server_web_external_url: /prometheus/ @@ -129,6 +132,10 @@ prometheus_alertmanager_smtp: prometheus_alertmanager_web_route_prefix: /alertmanager/ +prometheus_alertmanager_auth_users: + server: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}" + admin: "{{ vault_prometheus_alertmanager_auth_user_passwords['admin'] }}" + grafana_secret_key: "{{ vault_grafana_secret_key }}" -- cgit v1.2.3