1 # modules/resolvconf/manifests/init.pp - manage resolvconf stuff
2 # Copyright (C) 2007 admin@immerda.ch
5 # modules_dir { "resolvconf": }
8 $real_resolvconf_domain = $resolvconf_domain ? {
10 default => $resolvconf_domain,
12 $real_resolvconf_search = $resolvconf_search ? {
14 default => $resolvconf_search,
16 $real_resolvconf_nameservers = $resolvconf_nameservers ? {
17 '' => '212.103.67.60:212.103.67.61:212.103.72.231:192.168.1.104',
18 default => $resolvconf_nameservers,
21 # $real_resolvconf_nameserver1 = $resolvconf_nameserver1 ? {
22 # '' => '212.103.67.60',
23 # default => $resolvconf_nameserver1,
25 # $real_resolvconf_nameserver2 = $resolvconf_nameserver2 ? {
26 # '' => '212.103.72.231',
27 # default => $resolvconf_nameserver2,
29 # $real_resolvconf_nameserver3 = $resolvconf_nameserver3 ? {
30 # '' => '192.168.1.104',
31 # default => $resolvconf_nameserver3,
34 file { '/etc/resolv.conf':
35 path => '/etc/resolv.conf',
39 content => template("resolvconf/resolvconf.erb")