updated mariadb state

This commit is contained in:
Paul 2023-03-10 00:03:08 +01:00
parent 8fb956a7e2
commit 4eaf26944f
3 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
mariadb-config:
file.managed:
- name: /etc/mysql/mariadb.conf.d/51-server.cnf
- source: salt://mariadb/server.cnf.j2
- source: salt://mariadb/templates/server.cnf.j2
- user: root
- group: root
- mode: 0644

View File

@ -8,7 +8,6 @@ mariadb:
users: {}
config:
mysqld:
name: mysqld
options:
bind_address: 0.0.0.0
binlog_format: ROW

View File

@ -2,8 +2,8 @@
{%- from "mariadb/map.jinja" import mariadb with context -%}
{%- for section, elems in mariadb.config.items() %}
[{{ elems.name }}]
[{{ section }}]
{%- for key, value in elems.options.items() %}
{{ key }}={{ value }}
{{ key }}={{ value }}
{%- endfor %}
{%- endfor %}
{%- endfor %}