File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
14
14
if $mysql::server::create_root_my_cnf == true and $mysql::server::root_password != ' UNSET' {
15
- # Puppet 2.7 doesnt support show_diff
16
- if versioncmp($::puppetversion , ' 3.0' ) <= 0 {
17
- file { "${::root_home}/.my.cnf" :
18
- content => template (' mysql/my.cnf.pass.erb' ),
19
- owner => ' root' ,
20
- mode => ' 0600' ,
21
- show_diff => false ,
22
- }
23
- } else {
24
- file { "${::root_home}/.my.cnf" :
25
- content => template (' mysql/my.cnf.pass.erb' ),
26
- owner => ' root' ,
27
- mode => ' 0600' ,
28
- }
15
+ file { "${::root_home}/.my.cnf" :
16
+ content => template (' mysql/my.cnf.pass.erb' ),
17
+ owner => ' root' ,
18
+ mode => ' 0600' ,
29
19
}
20
+
30
21
# show_diff was added with puppet 3.0
31
22
if versioncmp($::puppetversion , ' 3.0' ) <= 0 {
32
23
File [" ${::root_home} /.my.cnf" ] { show_diff => false }
You can’t perform that action at this time.
0 commit comments