Merge pull request #801 from holser/my_cnf

Generate .my.cnf for all sections
This commit is contained in:
TP Honey 2016-02-19 15:26:31 +00:00
commit a2044354f4

View file

@ -1,9 +1,11 @@
### MANAGED BY PUPPET ###
[client]
<% %w(mysql client mysqldump mysqladmin mysqlcheck).each do |section| %>
[<%= section -%>]
user=root
host=localhost
<% unless scope.lookupvar('mysql::server::root_password') == 'UNSET' -%>
password='<%= scope.lookupvar('mysql::server::root_password') %>'
<% end -%>
socket=<%= @options['client']['socket'] -%>
socket=<%= @options['client']['socket'] %>
<% end %>