Use mysql::server::root_password instead of @options.

This commit is contained in:
Ashley Penney 2013-09-27 10:31:59 -04:00
parent f0cde6bfe1
commit 0e7e415029

View file

@ -1,7 +1,7 @@
[client]
user=root
host=localhost
<% unless @options['root_password'] == 'UNSET' -%>
password='<%= @options['root_password'] %>'
<% unless scope.lookupvar('mysql::server::root_password') == 'UNSET' -%>
password='<%= scope.lookupvar('mysql::server::root_password') %>'
<% end -%>
socket=<%= @options['client']['socket'] -%>