From dd29af58493e17c54990cdaa3754c4d176e24213 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 7 Jul 2023 08:39:03 +0200 Subject: [PATCH] added my.cnf for mysqld_exporter --- pod/mariadb.sls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pod/mariadb.sls b/pod/mariadb.sls index 1609896..1e2b6b9 100644 --- a/pod/mariadb.sls +++ b/pod/mariadb.sls @@ -7,5 +7,14 @@ Create data directory for mariadb: - group: 999 - mode: "0755" +Create my.cnf for mysqlg_exporter: + file.managed: + - name: /srv/my.cnf + - source: salt://pod/files/my.cnf.jinja + - template: jinja + - user: root + - group: root + - mode: "0755" + {{ pod_deploy('mariadb') }}