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