We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e9202 commit 0e9a4c6Copy full SHA for 0e9a4c6
manifests/server/root_password.pp
@@ -46,7 +46,7 @@
46
}
47
48
# show_diff was added with puppet 3.0
49
- if versioncmp($::puppetversion, '3.0') >= 0 {
+ if versioncmp($facts['puppetversion'], '3.0') >= 0 {
50
File["${facts['root_home']}/.my.cnf"] { show_diff => false }
51
52
if $mysql::server::create_root_user {
@@ -55,7 +55,7 @@
55
56
57
if $mysql::server::create_root_login_file and $root_password_set {
58
- file { "${::root_home}/.mylogin.cnf":
+ file { "${facts['root_home']}/.mylogin.cnf":
59
source => $login_file,
60
owner => 'root',
61
mode => '0600',
0 commit comments