Remove extra space from my.cnf to fix idempotency

The upstream galera module creates the .my.cnf to use when setting up
galera but it checks for the password existing in the file without a
space between password and the value. This change removes the extra
spaces between the values to satisfy the check condition and prevent the
.my.cnf from being overwritten each time the database task is run.

Change-Id: I70764c46a1962e6c7123b75b4b6d5b2e0f27c006
Related-Blueprint: granular-task-idempotency
This commit is contained in:
Alex Schultz 2016-02-29 13:54:17 -07:00
parent aa63d25519
commit 29fd2548dc
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<%- %w(mysql client mysqldump mysqladmin mysqlcheck).each do |section| %>
[<%= section %>]
user = '<%= @db_user %>'
password = '<%= @db_password %>'
host = '<%= @db_host %>'
user='<%= @db_user %>'
password='<%= @db_password %>'
host='<%= @db_host %>'
<%- end %>