commit
deba75d18a
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ describe 'mysql::config' do
|
|||
)}
|
||||
|
||||
it { should contain_file('/root/.my.cnf').with(
|
||||
'content' => "[client]\nuser=root\nhost=localhost\npassword=foo\n",
|
||||
'content' => "[client]\nuser=root\nhost=localhost\npassword='foo'\n",
|
||||
'require' => 'Exec[set_mysql_rootpw]'
|
||||
)}
|
||||
|
||||
|
@ -203,7 +203,7 @@ describe 'mysql::config' do
|
|||
)}
|
||||
|
||||
it { should contain_file('/root/.my.cnf').with(
|
||||
'content' => "[client]\nuser=root\nhost=localhost\npassword=foo\n",
|
||||
'content' => "[client]\nuser=root\nhost=localhost\npassword='foo'\n",
|
||||
'require' => 'Exec[set_mysql_rootpw]'
|
||||
)}
|
||||
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
user=root
|
||||
host=localhost
|
||||
<% unless @root_password == 'UNSET' -%>
|
||||
password=<%= @root_password %>
|
||||
password='<%= @root_password %>'
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue