From 308b6c2844ae65141610674c2315dd0b1990e3da Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 13 Feb 2023 00:04:09 +0100 Subject: [PATCH] munin-node apt_all update yields errors. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like: E: The value 'bookworm-backports' is invalid for APT::Default-Release as such a release is not available in the sources E: The value 'bookworm-security' is invalid for APT::Default-Release as such a release is not available in the sources E: The value 'bookworm-updates' is invalid for APT::Default-Release as such a release is not available in the sources But anyway « The plugin does not support this anymore. » : https://github.com/munin-monitoring/munin/commit/bc6450d8ebb1294fc7001f39c2cee28322c743c3 --- roles/munin_client/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/munin_client/tasks/main.yml b/roles/munin_client/tasks/main.yml index 8e34e9b..68f1e8c 100644 --- a/roles/munin_client/tasks/main.yml +++ b/roles/munin_client/tasks/main.yml @@ -41,3 +41,18 @@ host * port 4949 notify: munin + +- name: Setup apt_all plugin + file: + src: /usr/share/munin/plugins/apt_all + dest: /etc/munin/plugins/apt_all + state: link + +- name: Remove native munin apt update + # It is no longer supported + # and raises errors. + # The doc tells to use APT::Periodic::Update-Package-Lists "1"; instead. + ansible.builtin.lineinfile: + path: /etc/cron.d/munin-node + state: absent + regexp: '/etc/munin/plugins/apt_all update'