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 7450c855b4
commit 9d453a030c
1 changed files with 7 additions and 4 deletions

View File

@ -40,10 +40,13 @@ class unbound (
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',
# Rackspace uses static config files
file { '/etc/resolv.conf':
content => "nameserver 127.0.0.1\n",
owner => 'root',
group => 'root',
mode => '0444',
require => Service['unbound'],
}
}