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:
Ricardo Carrillo Cruz 2016-02-12 23:10:46 +01:00
parent 87a44986b6
commit 498f5d2ccd
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
---
fixes:
- Dnsmasq option was added to only offer DHCP leases
to known mac addresses when inventory_dhcp is being used.