aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/resolver.pp11
-rw-r--r--manifests/subsystems/utils/debian.pp2
2 files changed, 11 insertions, 2 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"
diff --git a/manifests/subsystems/utils/debian.pp b/manifests/subsystems/utils/debian.pp
index 41218e7..dc47f3b 100644
--- a/manifests/subsystems/utils/debian.pp
+++ b/manifests/subsystems/utils/debian.pp
@@ -40,7 +40,7 @@ class utils::personal::debian {
'msmtp', 'mairix', 'konqueror', 'bittorrent',
'irssi-scripts', 'links', 'twinkle', 'bittornado',
'rtorrent', 'iceweasel', 'irssi-plugin-otr', 'transmission',
- 'openvpn', 'resolvconf' ]:
+ 'openvpn' ]:
ensure => installed,
}