diff options
Diffstat (limited to 'manifests/subsystems/resolver.pp')
-rw-r--r-- | manifests/subsystems/resolver.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/subsystems/resolver.pp b/manifests/subsystems/resolver.pp index e1e4582..0d8beb8 100644 --- a/manifests/subsystems/resolver.pp +++ b/manifests/subsystems/resolver.pp @@ -1,7 +1,16 @@ 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" |