Disable resolvconf on ubuntu

And just use a static resolv.conf file instead.  There are too many
conditions in which resolvconf might find itself, and this is much
simpler anyway.

Change-Id: I71b80e533afa93a659c634db5e6b9abf6134ab58
This commit is contained in:
James E. Blair 2014-03-21 11:35:04 -07:00
parent 8d9f12a278
commit 2f89f3b028

View File

@ -40,10 +40,13 @@ class unbound (
require => File['/etc/default/unbound'], require => File['/etc/default/unbound'],
} }
# Make sure resolvconf is enabled (which is the default). # Rackspace uses static config files
exec {'enable-resolvconf': file { '/etc/resolv.conf':
command => '/sbin/resolvconf --enable-updates', content => "nameserver 127.0.0.1\n",
creates => '/var/run/resolvconf/enable-updates', owner => 'root',
group => 'root',
mode => '0444',
require => Service['unbound'],
} }
} }