Merge pull request #732 from DavidS/dont_print_root

(maint) don't print diff root password in diff
This commit is contained in:
TP Honey 2015-07-14 12:16:00 +01:00
commit f9359624f0

View file

@ -27,6 +27,10 @@ class mysql::server::root_password {
mode => '0600',
}
}
# show_diff was added with puppet 3.0
if versioncmp($::puppetversion, '3.0') <= 0 {
File["${::root_home}/.my.cnf"] { show_diff => false }
}
if $mysql::server::create_root_user == true {
Mysql_user['root@localhost'] -> File["${::root_home}/.my.cnf"]
}