Merge pull request #853 from ragonlan/patch-1

Resource fails when fqdn is not set.
This commit is contained in:
Igor Galić 2016-06-15 14:11:26 +02:00 committed by GitHub
commit 5bd497579e

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}"]: