]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
dhcp-server: Only create host declaration if its IP is in subnet we're writing 558/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 2 Apr 2020 15:25:03 +0000 (11:25 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 2 Apr 2020 17:03:17 +0000 (13:03 -0400)
commite6ec246b4f671193ebb0cd11b3780b5b112769d5
treedfc53cf13735fdc04e8dc446ffc98ef135accda9
parente3fc338eaa84db3e5d9dce0e603126f41b35cdf3
dhcp-server: Only create host declaration if its IP is in subnet we're writing

In the Octo lab, we have multiple subnets with the same domain and VLAN.  This is problematic because in the `dhcp_subnets` dict, we only anticipate there being one cidr.

This change will let you have multiple "subnets" in `dhcp_subnets` without fiddling with the ansible inventory ipvars or macvars.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/dhcp-server/templates/dhcpd.subnet.conf.j2