Added support for % hosts

This commit is contained in:
Juan M 2014-07-02 23:43:27 -03:00
parent 8159d61147
commit bad340eb38

View file

@ -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') }}'