diff options
author | James Shubin <james@shubin.ca> | 2013-12-17 21:37:30 -0500 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2013-12-17 21:37:30 -0500 |
commit | 735df01e768461a48e21e126c460ac4f78106cd8 (patch) | |
tree | 7f42de17a73148e9e9f2a9d04b3b8d8fb3c16fb8 | |
parent | 562da97b30ef55d8dca06dc9a920085e03d9fd56 (diff) | |
download | puppet-gluster-735df01e768461a48e21e126c460ac4f78106cd8.tar.gz puppet-gluster-735df01e768461a48e21e126c460ac4f78106cd8.tar.xz puppet-gluster-735df01e768461a48e21e126c460ac4f78106cd8.zip |
Catch DNS errors more easily.
This should help users figure out they have a DNS problem sooner.
-rw-r--r-- | manifests/simple.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/simple.pp b/manifests/simple.pp index 91847b4..dec6dc7 100644 --- a/manifests/simple.pp +++ b/manifests/simple.pp @@ -64,6 +64,10 @@ class gluster::simple( shorewall => $shorewall, } + if "${::fqdn}" == '' { + fail('Your $fqdn is empty. Please check your DNS settings.') + } + @@gluster::host { "${::fqdn}": } Gluster::Host <<||>> |