From 1e3ac40167d8a4f8b1689b5b2a0e8cf399f35a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sun, 8 Mar 2020 22:15:06 +0100 Subject: [PATCH] mysql: Munin must use the debian-sys-maint user --- mysql/tasks/munin.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mysql/tasks/munin.yml b/mysql/tasks/munin.yml index 70e871e1..c7017aa2 100644 --- a/mysql/tasks/munin.yml +++ b/mysql/tasks/munin.yml @@ -57,6 +57,14 @@ - tmp_tables notify: restart munin-node + - name: verify Munin configuration for mysql + replace: + dest: /etc/munin/plugin-conf.d/munin-node + after: '\[mysql\*\]' + regexp: '^env.mysqluser (.+)$' + replace: 'env.mysqluser debian-sys-maint' + notify: restart munin-node + when: munin_node_plugins_config.stat.exists tags: - mysql