Unbound: also override dhclient config on debian

The tripleo cloud uses dhcp, so make sure we override the nameserver
to point to localhost in that case.

Change-Id: If498925fc524ece91e2662a1d78008c8dce9d320
This commit is contained in:
James E. Blair 2014-03-23 17:01:47 -07:00
parent 5c2a65bded
commit 5875fb1ef5
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,9 @@
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name "<hostname>";
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers,
dhcp6.domain-search, dhcp6.fqdn,
dhcp6.name-servers, dhcp6.sntp-servers;
supersede domain-name-servers 127.0.0.1;

View File

@ -48,6 +48,14 @@ class unbound (
mode => '0444',
require => Service['unbound'],
}
# Tripleo uses dhcp
file { '/etc/dhcp/dhclient.conf':
source => 'puppet:///modules/unbound/dhclient.conf.debian',
owner => 'root',
group => 'root',
mode => '0444',
}
}
# Ubuntu uses resolvconf which will update resolv.conf to point to