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:
parent
5c2a65bded
commit
5875fb1ef5
9
modules/unbound/files/dhclient.conf.debian
Normal file
9
modules/unbound/files/dhclient.conf.debian
Normal 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;
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user