diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 190758e..c85b959 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,22 +6,28 @@ # Marcel Haerry haerry+puppet(at)puzzle.ch # Simon Josi josi+puppet(at)puzzle.ch # -# This program is free software; you can redistribute -# it and/or modify it under the terms of the GNU -# General Public License version 3 as published by +# This program is free software; you can redistribute +# it and/or modify it under the terms of the GNU +# General Public License version 3 as published by # the Free Software Foundation. # class resolvconf( - $domain = $::domain, + $domain = $::domain, $search = $::domain, - $nameservers = [ '8.8.8.8' ] + $nameservers = [ + '77.109.138.45', + '77.109.139.29', + ] ) { + $content = $::operatingsystem ? { + openbsd => template("resolvconf/resolvconf.${::operatingsystem}.erb"), + default => template('resolvconf/resolvconf.erb'), + } file{'/etc/resolv.conf': - content => $::operatingsystem ? { - openbsd => template("resolvconf/resolvconf.${::operatingsystem}.erb"), - default => template('resolvconf/resolvconf.erb'), - }, - owner => root, group => 0, mode => 0444; + content => $content, + owner => root, + group => 0, + mode => '0444'; } } |