resolv.conf für immer1-6
[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 class resolvconf {}
8
9 define resolvconf::create (
10     $domain='glei.ch', 
11     $search='glei.ch',
12     $nameserver1='212.103.67.60',  
13     $nameserver2='212.103.72.231', 
14     $nameserver3='192.168.1.104'
15 ) {
16     $str = "search $search
17 domain $domain
18 nameserver $nameserver1
19 nameserver $nameserver2
20 nameserver $nameserver3
21 "
22
23     file { "/etc/resolv.conf":
24         content => $str
25     }
26 }
27
28
29