Do not offer DHCP leases to unknown machines when using inventory_dhcp
Turns out the dhcp-range option of dnsmasq does not constrain the DHCP leases to the range specified. When using inventory_dhcp, we specify the *exact* set of machines that will be managed by dnsmasq via the json inventory and therefore it should just provide IPs to those machines. Change-Id: Ic72ab075a1e2ef351f5ddb00c1a34e5fbb163036
This commit is contained in:
parent
87a44986b6
commit
498f5d2ccd
@ -45,6 +45,7 @@ conf-dir=/etc/dnsmasq.d
|
||||
{% if inventory_dhcp %}
|
||||
addn-hosts=/etc/dnsmasq.d/bifrost.hosts.d
|
||||
dhcp-hostsfile=/etc/dnsmasq.d/bifrost.dhcp-hosts.d
|
||||
dhcp-ignore=tag:!known
|
||||
{% endif %}
|
||||
|
||||
# Set the domain for dnsmasq. this is optional, but if it is set, it
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- Dnsmasq option was added to only offer DHCP leases
|
||||
to known mac addresses when inventory_dhcp is being used.
|
Loading…
Reference in New Issue
Block a user