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:
parent
52477c0d43
commit
bff5bdfc7b
1 changed files with 1 additions and 1 deletions
|
@ -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}"]:
|
||||
|
|
Loading…
Reference in a new issue