updated mariadb state
This commit is contained in:
parent
f6431ecd09
commit
26176f89f3
@ -1,9 +1,9 @@
|
||||
---
|
||||
{%- from "mariadb/map.jinja" import mariadb with context %}
|
||||
{%- for key, value in mariadb.databases.items() %}
|
||||
mariadb-database-{{ value.name }}:
|
||||
{%- for name, database in mariadb.databases.items() %}
|
||||
mariadb-database-{{ name }}:
|
||||
mysql_database.present:
|
||||
- name: {{ value.name }}
|
||||
- name: {{ name }}
|
||||
- connection_user: {{ mariadb.connection_user }}
|
||||
- connection_pass: {{ mariadb.connection_pass }}
|
||||
{%- endfor %}
|
||||
|
@ -1,9 +1,9 @@
|
||||
---
|
||||
{%- from "mariadb/map.jinja" import mariadb with context %}
|
||||
{%- for key, user in mariadb.users.items() %}
|
||||
mariadb-user-{{ user.name }}:
|
||||
{%- for name, user in mariadb.users.items() %}
|
||||
mariadb-user-{{ name }}:
|
||||
mysql_user.present:
|
||||
- name: {{ user.name }}
|
||||
- name: {{ name }}
|
||||
- password: {{ user.password }}
|
||||
- host: '{{ user.host }}'
|
||||
- connection_user: {{ mariadb.connection_user }}
|
||||
@ -15,7 +15,7 @@ mariadb-grants-{{ grant.name }}:
|
||||
- name: {{ grant.name }}
|
||||
- grant: '{{ grant.grant }}'
|
||||
- database: '{{ grant.database }}'
|
||||
- user: '{{ user.name }}'
|
||||
- user: '{{ name }}'
|
||||
- host: '{{ user.host }}'
|
||||
- connection_user: {{ mariadb.connection_user }}
|
||||
- connection_pass: {{ mariadb.connection_pass }}
|
||||
|
Loading…
Reference in New Issue
Block a user