diff options
author | mh <mh@immerda.ch> | 2008-10-06 21:27:43 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-10-06 21:27:43 +0000 |
commit | 0c85c90c1e344ae8b4d73afaf4fdf0a433af1191 (patch) | |
tree | c2fd3044c10cc5c4e4b1f48e98c75f37c33c08fc /manifests | |
parent | 2acf8f5b6df43b086bd40bd4005aa091b320541e (diff) | |
download | puppet-resolvconf-0c85c90c1e344ae8b4d73afaf4fdf0a433af1191.tar.gz puppet-resolvconf-0c85c90c1e344ae8b4d73afaf4fdf0a433af1191.tar.bz2 |
only check if it is really needed
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 15 |
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}") } |