updated mariadb state
This commit is contained in:
parent
f6431ecd09
commit
26176f89f3
@ -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 %}
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user