summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2013-12-17 21:37:30 -0500
committerJames Shubin <james@shubin.ca>2013-12-17 21:37:30 -0500
commit735df01e768461a48e21e126c460ac4f78106cd8 (patch)
tree7f42de17a73148e9e9f2a9d04b3b8d8fb3c16fb8
parent562da97b30ef55d8dca06dc9a920085e03d9fd56 (diff)
downloadpuppet-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.pp4
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 <<||>>