From 0c85c90c1e344ae8b4d73afaf4fdf0a433af1191 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 6 Oct 2008 21:27:43 +0000 Subject: only check if it is really needed --- manifests/init.pp | 15 ++++++++++----- 1 file 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}") } -- cgit v1.2.3