summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 50043ae9bb4379b00b9f905b99d888b40b786518 (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
# modules/resolvconf/manifests/init.pp - manage resolvconf stuff
# Copyright (C) 2007 admin@immerda.ch
# GPLv3

# modules_dir { "resolvconf": }

define resolveconf (
    $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
    }
}