Skip to content

Commit 0dffab2

Browse files
Fix show_diff already set on .my.cnf
show_diff is set twice on .my.cnf causing compilation error: Parameter 'show_diff' is already set on File[/.my.cnf] This patch removes one of them
1 parent c7de520 commit 0dffab2

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

manifests/server/root_password.pp

+5-14
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,12 @@
1212
}
1313

1414
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',
2919
}
20+
3021
# show_diff was added with puppet 3.0
3122
if versioncmp($::puppetversion, '3.0') <= 0 {
3223
File["${::root_home}/.my.cnf"] { show_diff => false }

0 commit comments

Comments
 (0)