Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3928810
D3071.id7832.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3071.id7832.diff
View Options
diff --git a/roles/dbserver-mysql/content/init.sls b/roles/dbserver-mysql/content/init.sls
--- a/roles/dbserver-mysql/content/init.sls
+++ b/roles/dbserver-mysql/content/init.sls
@@ -18,7 +18,7 @@
dbserver_mysql_user_{{ username }}:
mysql_user.present:
- name: {{ username }}
- - host: {{ args["host"] }}
+ - host: {{ args["host"] | yaml_dquote }}
- password: {{ salt["credentials.get_password"](args["password"]) }}
{% endfor %}
@@ -69,7 +69,7 @@
- grant: all privileges
- database: {{ privilege["database"] }}.*
- user: {{ username }}
- - host: {{ user_args["host"] }}
+ - host: {{ user_args["host"] | yaml_dquote }}
- require:
- dbserver_mysql_user_{{ username }}
- dbserver_mysql_db_{{ privilege["database"] }}
@@ -82,6 +82,7 @@
- grant: {{ privilege["privileges"] }}
- database: {{ privilege["database"] }}.{{ table }}
- user: {{ username }}
+ - host: {{ user_args["host"] | yaml_dquote }}
- require:
- dbserver_mysql_user_{{ username }}
- dbserver_mysql_db_{{ privilege["database"] }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 06:17 (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2310844
Default Alt Text
D3071.id7832.diff (1 KB)
Attached To
Mode
D3071: Escape MySQL host
Attached
Detach File
Event Timeline
Log In to Comment