File tree 2 files changed +19
-4
lines changed
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ spec/fixtures/
7
7
coverage /
8
8
.idea /
9
9
* .iml
10
+ log /
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
- file { "${::root_home}/.my.cnf" :
16
- content => template (' mysql/my.cnf.pass.erb' ),
17
- owner => ' root' ,
18
- mode => ' 0600' ,
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
+ }
29
+ }
30
+ # show_diff was added with puppet 3.0
31
+ if versioncmp($::puppetversion , ' 3.0' ) <= 0 {
32
+ File [" ${::root_home} /.my.cnf" ] { show_diff => false }
19
33
}
20
34
if $mysql::server::create_root_user == true {
21
35
Mysql_user[' root@localhost' ] -> File [" ${::root_home} /.my.cnf" ]
You can’t perform that action at this time.
0 commit comments