Skip to content

Commit 0e9a4c6

Browse files
committed
fix
1 parent 21e9202 commit 0e9a4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/server/root_password.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
# show_diff was added with puppet 3.0
49-
if versioncmp($::puppetversion, '3.0') >= 0 {
49+
if versioncmp($facts['puppetversion'], '3.0') >= 0 {
5050
File["${facts['root_home']}/.my.cnf"] { show_diff => false }
5151
}
5252
if $mysql::server::create_root_user {
@@ -55,7 +55,7 @@
5555
}
5656

5757
if $mysql::server::create_root_login_file and $root_password_set {
58-
file { "${::root_home}/.mylogin.cnf":
58+
file { "${facts['root_home']}/.mylogin.cnf":
5959
source => $login_file,
6060
owner => 'root',
6161
mode => '0600',

0 commit comments

Comments
 (0)