From 4f2f0ffe641e274b27ff313f889d3ceb7fed840e Mon Sep 17 00:00:00 2001 From: Jeltz Date: Wed, 19 May 2021 15:32:33 +0200 Subject: [PATCH 1/2] Increase swap alert threshold --- roles/prometheus/templates/server.rules.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/templates/server.rules.yml.j2 b/roles/prometheus/templates/server.rules.yml.j2 index ac09881..db82ae8 100644 --- a/roles/prometheus/templates/server.rules.yml.j2 +++ b/roles/prometheus/templates/server.rules.yml.j2 @@ -50,7 +50,7 @@ groups: node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes ) - ) * 100 > 10 + ) * 100 >= 20 for: 3m labels: severity: warning -- 2.45.2 From 9296a2ed915fdfa251fcaf4692951f0aafcde62c Mon Sep 17 00:00:00 2001 From: Jeltz Date: Sun, 23 May 2021 14:02:20 +0200 Subject: [PATCH 2/2] Add caradoc.adm.auro.re --- hosts | 1 + roles/borgbackup_client/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts b/hosts index 001fd29..93c70ce 100644 --- a/hosts +++ b/hosts @@ -245,6 +245,7 @@ ps-4-3.borne.auro.re [edc_server] perceval.adm.auro.re +caradoc.adm.auro.re [edc_pve] chapalux.adm.auro.re diff --git a/roles/borgbackup_client/tasks/main.yml b/roles/borgbackup_client/tasks/main.yml index fcf1226..8fa0852 100644 --- a/roles/borgbackup_client/tasks/main.yml +++ b/roles/borgbackup_client/tasks/main.yml @@ -13,7 +13,7 @@ dest: /etc/apt/preferences.d/borgmatic-bullseye when: - "ansible_distribution == 'Debian'" - - "ansible_distribution_major_version in ('stretch', 'buster')" + - "ansible_distribution_major_version in ('stretch', 'buster', '9', '10')" - name: Install borgmatic apt: -- 2.45.2