Kleinere Korrekturen

This commit is contained in:
phil 2021-01-04 13:33:32 +00:00
parent 1d782e22e6
commit ba1908864f
3 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,9 @@
--- ---
# defaults file for mariadb # defaults file for mariadb
munin_sql_config_file: /etc/munin/plugin-conf.d/zzz-mariadb
munin_sql_user: munin munin_sql_user: munin
munin_sql_password: za8x5sECY6pP2GWdR36UKYP7tHFodvRLyr6f5wAt7D munin_sql_password: za8x5sECY6pP2GWdR36UKYP7tHFodvRLyr6f5wAt7D
mysql_server_config_file: /etc/mysql/mariadb.conf.d/50-server.cnf mysql_server_config_file: /etc/mysql/mariadb.conf.d/50-server.cnf
mysql_socket: /var/run/mysqld/mysqld.sock mysql_socket: /run/mysqld/mysqld.sock

View file

@ -10,11 +10,13 @@
- name: "Munin: Ersetze MariaDB-Zugangsdaten" - name: "Munin: Ersetze MariaDB-Zugangsdaten"
template: template:
src: templates/munin-mariadb.j2 src: templates/munin-mariadb.j2
dest: /etc/munin/plugin-conf.d/zzz-mariadb dest: "{{ munin_sql_config_file }}"
notify: restart munin-node notify: restart munin-node
- name: "Munin: Aktiviere mysql-Plugin" - name: "Munin: Aktiviere mysql-Plugin"
command: munin-node-configure --shell | grep mysql_ | sh shell: munin-node-configure --shell | grep mysql_ | sh
args:
creates: "{{ munin_sql_config_file }}"
# Ausgabe von fehlerhaften Plugins (exit 1) ignorieren # Ausgabe von fehlerhaften Plugins (exit 1) ignorieren
ignore_errors: yes ignore_errors: yes
notify: restart munin-node notify: restart munin-node

View file

@ -9,5 +9,4 @@
- default-mysql-server - default-mysql-server
- libcache-cache-perl - libcache-cache-perl
- python-pymysql - python-pymysql
update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600