From bad340eb3858760efd4c6807b7263f1d5bc5709d Mon Sep 17 00:00:00 2001 From: Juan M Date: Wed, 2 Jul 2014 23:43:27 -0300 Subject: [PATCH] Added support for % hosts --- mysql/user.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql/user.sls b/mysql/user.sls index c07e9ee..935493c 100644 --- a/mysql/user.sls +++ b/mysql/user.sls @@ -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') }}'