blob: 0d8beb8f57e398ebd65ba893877334f04ed65ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class resolver {
# DNS resolver
case $resolvconf_nameservers {
'': {
package { 'resolvconf':
ensure => present,
}
file { '/etc/resolv.conf':
ensure => '/etc/resolvconf/run/resolv.conf',
require => Package['resolvconf'],
}
}
default: {
$resolvconf_domain = "$domain"
$resolvconf_search = "$fqdn"
include resolvconf
}
}
}
|