Resource fails when fqdn is not set.

if server don't have domain name facter don't initialize fqdn and mysql_user resource fails with "...Invalid database user..." error.
This commit is contained in:
Raul Gonzalez 2016-06-07 19:41:46 +02:00
parent 52477c0d43
commit bff5bdfc7b

View file

@ -16,7 +16,7 @@ class mysql::server::account_security {
require => Anchor['mysql::server::end'],
}
}
if ($::fqdn != 'localhost') {
if ($::fqdn and $::fqdn != 'localhost') {
mysql_user {
[ "root@${::fqdn}",
"@${::fqdn}"]: