We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb4f15b + 765b5c2 commit 5a167c9Copy full SHA for 5a167c9
manifests/config.pp
@@ -116,6 +116,11 @@
116
require => Exec['set_mysql_rootpw'],
117
}
118
119
+ } else {
120
+ file { '/root/.my.cnf':
121
+ ensure => present,
122
+ require => Exec['set_mysql_rootpw'],
123
+ }
124
125
126
file { '/etc/mysql':
spec/classes/mysql_config_spec.rb
@@ -130,7 +130,7 @@
130
131
it { should_not contain_exec('set_mysql_rootpw') }
132
133
- it { should_not contain_file('/root/.my.cnf')}
+ it { should contain_file('/root/.my.cnf')}
134
135
it { should contain_file('/etc/mysql').with(
136
'owner' => 'root',
0 commit comments