Merge pull request #801 from holser/my_cnf
Generate .my.cnf for all sections
This commit is contained in:
commit
a2044354f4
1 changed files with 4 additions and 2 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue