From c93f8c8935c5a877b2342efadf992c9641d01170 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Tue, 30 Aug 2022 19:46:30 +0200 Subject: [PATCH] Configure log monitoring --- machine.yml | 17 +++++++++++++++++ root/etc/logcheck/ignore.d.server/yggdrasil.j2 | 0 2 files changed, 17 insertions(+) create mode 100644 root/etc/logcheck/ignore.d.server/yggdrasil.j2 diff --git a/machine.yml b/machine.yml index d94133b..f56bf30 100644 --- a/machine.yml +++ b/machine.yml @@ -376,6 +376,23 @@ when: smartd_conf is changed + # ------------------------------------------------------------------------- + # Log monitoring. + # ------------------------------------------------------------------------- + + - name: Install logcheck and logrotate + apt: + name: + - logcheck + - logrotate + + - name: Configure logcheck + template: + src: ./root/etc/logcheck/ignore.d.server/yggdrasil.j2 + dest: /etc/logcheck/ignore.d.server/yggdrasil + group: logcheck + mode: 0644 + # ------------------------------------------------------------------------- # Set MotD. # ------------------------------------------------------------------------- diff --git a/root/etc/logcheck/ignore.d.server/yggdrasil.j2 b/root/etc/logcheck/ignore.d.server/yggdrasil.j2 new file mode 100644 index 0000000..e69de29