Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #125 from bodepd/create_my_cnf

Create /root/.my.cnf even when root passwd is not managed
  • Loading branch information...
commit 5a167c9eef3d49220357acc599d83f621080b3da 2 parents bb4f15b + 765b5c2
@ryanycoleman ryanycoleman authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 manifests/config.pp
  2. +1 −1  spec/classes/mysql_config_spec.rb
View
5 manifests/config.pp
@@ -116,6 +116,11 @@
require => Exec['set_mysql_rootpw'],
}
}
+ } else {
+ file { '/root/.my.cnf':
+ ensure => present,
+ require => Exec['set_mysql_rootpw'],
+ }
}
file { '/etc/mysql':
View
2  spec/classes/mysql_config_spec.rb
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.