From 8d9f12a278bfaa8d11f4c63d6de0cb960aab84f2 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 21 Mar 2014 11:03:14 -0700 Subject: [PATCH] Make sure resolvconf is enabled This should be the default, but for some reason, it isn't on some of our servers, especially older ones. Change-Id: I1b926bb5583121123f261eb78a95f5cc5ce67273 --- modules/unbound/manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/unbound/manifests/init.pp b/modules/unbound/manifests/init.pp index ba56607163..f8c3125dfa 100644 --- a/modules/unbound/manifests/init.pp +++ b/modules/unbound/manifests/init.pp @@ -39,6 +39,12 @@ class unbound ( ensure => present, require => File['/etc/default/unbound'], } + + # Make sure resolvconf is enabled (which is the default). + exec {'enable-resolvconf': + command => '/sbin/resolvconf --enable-updates', + creates => '/var/run/resolvconf/enable-updates', + } } # Ubuntu uses resolvconf which will update resolv.conf to point to