summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-10-06 21:27:43 +0000
committermh <mh@immerda.ch>2008-10-06 21:27:43 +0000
commit0c85c90c1e344ae8b4d73afaf4fdf0a433af1191 (patch)
treec2fd3044c10cc5c4e4b1f48e98c75f37c33c08fc
parent2acf8f5b6df43b086bd40bd4005aa091b320541e (diff)
only check if it is really needed
-rw-r--r--manifests/init.pp15
1 files changed, 10 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 71a9db8..c55781a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,11 +15,16 @@
# modules_dir { "resolvconf": }
class resolvconf {
- case $reseolvconf_domain {
- '': { fail("you need to define \$reseolvconf_domain for ${fqdn}") }
- }
- case $resolvconf_search {
- '': { fail("you need to define \$reseolvconf_search for ${fqdn}") }
+ case $operatingsystem {
+ openbsd: { info("\$reseolvconf_domain and \$reseolvconf_search not needed on openbsd") }
+ default: {
+ case $reseolvconf_domain {
+ '': { fail("you need to define \$reseolvconf_domain for ${fqdn}") }
+ }
+ case $resolvconf_search {
+ '': { fail("you need to define \$reseolvconf_search for ${fqdn}") }
+ }
+ }
}
case $resolvconf_nameservers {
'': { fail("you need to define \$reseolvconf_nameservers for ${fqdn}") }