new module to create resolv.conf
[puppet_resolvconf.git] / manifests / init.pp
1 # modules/resolvconf/manifests/init.pp - manage resolvconf stuff
2 # Copyright (C) 2007 admin@immerda.ch
3 # GPLv3
4
5 # modules_dir { "resolvconf": }
6
7 define resolveconf (
8     $domain='glei.ch', 
9     $search='glei.ch',
10     $nameserver1='212.103.67.60',  
11     $nameserver2='212.103.72.231', 
12     $nameserver3='192.168.1.104'
13 ) {
14     $str = "search $search
15 domain $domain
16 nameserver $nameserver1
17 nameserver $nameserver2
18 nameserver $nameserver3
19 "
20
21     file { "/etc/resolv.conf":
22         content => $str
23     }
24 }
25
26
27