Skip to content
Snippets Groups Projects
Commit bad340eb authored by Juan M's avatar Juan M
Browse files

Added support for % hosts

parent 8159d611
Branches
Tags
No related merge requests found
......@@ -10,7 +10,7 @@ include:
{{ state_id }}:
mysql_user.present:
- name: {{ user['name'] }}
- host: {{ user['host'] }}
- host: '{{ user['host'] }}'
{%- if user['password_hash'] is defined %}
- password_hash: '{{ user['password_hash'] }}'
{% else %}
......@@ -28,7 +28,7 @@ include:
- grant: {{db['grants']|join(",")}}
- database: {{ db['database'] }}.*
- user: {{ user['name'] }}
- host: {{ user['host'] }}
- host: '{{ user['host'] }}'
- connection_host: localhost
- connection_user: root
- connection_pass: '{{ salt['pillar.get']('mysql:server:root_password', 'somepass') }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment