updated mariadb state

This commit is contained in:
Paul 2023-09-14 16:45:40 +02:00
parent f6431ecd09
commit 26176f89f3
2 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
--- ---
{%- from "mariadb/map.jinja" import mariadb with context %} {%- from "mariadb/map.jinja" import mariadb with context %}
{%- for key, value in mariadb.databases.items() %} {%- for name, database in mariadb.databases.items() %}
mariadb-database-{{ value.name }}: mariadb-database-{{ name }}:
mysql_database.present: mysql_database.present:
- name: {{ value.name }} - name: {{ name }}
- connection_user: {{ mariadb.connection_user }} - connection_user: {{ mariadb.connection_user }}
- connection_pass: {{ mariadb.connection_pass }} - connection_pass: {{ mariadb.connection_pass }}
{%- endfor %} {%- endfor %}

View File

@ -1,9 +1,9 @@
--- ---
{%- from "mariadb/map.jinja" import mariadb with context %} {%- from "mariadb/map.jinja" import mariadb with context %}
{%- for key, user in mariadb.users.items() %} {%- for name, user in mariadb.users.items() %}
mariadb-user-{{ user.name }}: mariadb-user-{{ name }}:
mysql_user.present: mysql_user.present:
- name: {{ user.name }} - name: {{ name }}
- password: {{ user.password }} - password: {{ user.password }}
- host: '{{ user.host }}' - host: '{{ user.host }}'
- connection_user: {{ mariadb.connection_user }} - connection_user: {{ mariadb.connection_user }}
@ -15,7 +15,7 @@ mariadb-grants-{{ grant.name }}:
- name: {{ grant.name }} - name: {{ grant.name }}
- grant: '{{ grant.grant }}' - grant: '{{ grant.grant }}'
- database: '{{ grant.database }}' - database: '{{ grant.database }}'
- user: '{{ user.name }}' - user: '{{ name }}'
- host: '{{ user.host }}' - host: '{{ user.host }}'
- connection_user: {{ mariadb.connection_user }} - connection_user: {{ mariadb.connection_user }}
- connection_pass: {{ mariadb.connection_pass }} - connection_pass: {{ mariadb.connection_pass }}