diff options
author | mh <mh@immerda.ch> | 2008-10-06 21:19:04 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-10-06 21:19:04 +0000 |
commit | df62da5a8e588444a01207310188f1e05409a117 (patch) | |
tree | 79edb42331806321cb341c01f28c7f14b01c2a76 /manifests | |
parent | 47ff12dfa9f51e5b3ab948202e795de26388dd19 (diff) | |
download | puppet-resolvconf-df62da5a8e588444a01207310188f1e05409a117.tar.gz puppet-resolvconf-df62da5a8e588444a01207310188f1e05409a117.tar.bz2 |
throw away the defaulting immerda specific variables, added a special template for openbsd
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 1f5f986..a14f01b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,17 +15,14 @@ # modules_dir { "resolvconf": } class resolvconf { - $real_resolvconf_domain = $resolvconf_domain ? { - '' => 'glei.ch', - default => $resolvconf_domain, + case $reseolvconf_domain { + '': { fail("you need to define \$reseolvconf_domain for ${fqdn}") } } - $real_resolvconf_search = $resolvconf_search ? { - '' => 'glei.ch', - default => $resolvconf_search, + $resolvconf_search { + '': { fail("you need to define \$reseolvconf_search for ${fqdn}") } } - $real_resolvconf_nameservers = $resolvconf_nameservers ? { - '' => '212.103.67.60:212.103.67.61', - default => $resolvconf_nameservers, + $resolvconf_nameservers { + '': { fail("you need to define \$reseolvconf_nameservers for ${fqdn}") } } file { '/etc/resolv.conf': @@ -33,6 +30,9 @@ class resolvconf { owner => root, group => 0, mode => 444, - content => template("resolvconf/resolvconf.erb") + content => $operatingsystem ? { + openbsd => template("resolvconf/resolvconf.${operatingsystem}.erb"), + default => template('resolvconf/resolvconf.erb'), + } } } |