Create /root/.my.cnf even when root passwd is not managed #125

Merged
merged 1 commit into from Oct 13, 2012
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Diff settings

Always

Just for now

View
@@ -116,6 +116,11 @@
require => Exec['set_mysql_rootpw'],
}
}
+ } else {
+ file { '/root/.my.cnf':
+ ensure => present,
+ require => Exec['set_mysql_rootpw'],
+ }
}
file { '/etc/mysql':
@@ -130,7 +130,7 @@
it { should_not contain_exec('set_mysql_rootpw') }
- it { should_not contain_file('/root/.my.cnf')}
+ it { should contain_file('/root/.my.cnf')}
it { should contain_file('/etc/mysql').with(
'owner' => 'root',