From 13addae31d206ca9e2d8dc05ce7e0a63692d70d9 Mon Sep 17 00:00:00 2001 From: Daniel Matthews Date: Tue, 2 Jan 2024 10:02:22 +0000 Subject: [PATCH] Remove tls expiry warning variable --- roles/monitoring_server/defaults/main.yml | 2 -- roles/monitoring_server/templates/prometheus_rules.yml.j2 | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/monitoring_server/defaults/main.yml b/roles/monitoring_server/defaults/main.yml index 1a22393a..069f26a7 100644 --- a/roles/monitoring_server/defaults/main.yml +++ b/roles/monitoring_server/defaults/main.yml @@ -30,8 +30,6 @@ monitoring_server_smtp_password: "" monitoring_server_smtp_start_tls: "false" ssl_trust: "*" -monitoring_server_tls_expiry_warn_days: "140" - monitoring_server_hostname_extractor: "ansible_host" monitoring_server_alertmanager: diff --git a/roles/monitoring_server/templates/prometheus_rules.yml.j2 b/roles/monitoring_server/templates/prometheus_rules.yml.j2 index 9ba16769..1c563fd4 100644 --- a/roles/monitoring_server/templates/prometheus_rules.yml.j2 +++ b/roles/monitoring_server/templates/prometheus_rules.yml.j2 @@ -2,7 +2,7 @@ groups: - name: tls-expiry rules: - alert: SSLCertExpiringSoon - expr: probe_ssl_earliest_cert_expiry - time() < 86400 * {{ monitoring_server_tls_expiry_warn_days }} + expr: probe_ssl_earliest_cert_expiry - time() < 86400 * 140 for: 1m labels: severity: warning