4 # Copyright 2008, admin(at)immerda.ch
5 # Copyright 2008, Puzzle ITC GmbH
6 # Marcel Härry haerry+puppet(at)puzzle.ch
7 # Simon Josi josi+puppet(at)puzzle.ch
9 # This program is free software; you can redistribute
10 # it and/or modify it under the terms of the GNU
11 # General Public License version 3 as published by
12 # the Free Software Foundation.
15 # modules_dir { "resolvconf": }
18 case $reseolvconf_domain {
19 '': { fail("you need to define \$reseolvconf_domain for ${fqdn}") }
21 case $resolvconf_search {
22 '': { fail("you need to define \$reseolvconf_search for ${fqdn}") }
24 case $resolvconf_nameservers {
25 '': { fail("you need to define \$reseolvconf_nameservers for ${fqdn}") }
28 file { '/etc/resolv.conf':
29 path => '/etc/resolv.conf',
33 content => $operatingsystem ? {
34 openbsd => template("resolvconf/resolvconf.${operatingsystem}.erb"),
35 default => template('resolvconf/resolvconf.erb'),