r/hass-dhcp: Clean up DHCP/DNS service

The production deployment of *dnsmasq* for Home Assistant has deviated
from how the *hass-dhcp* role configures it.  Bringing the role back in
sync with how things really are.
This commit is contained in:
2021-07-24 18:33:15 -05:00
parent ceeb61cdb0
commit 5d7ebbaa05
5 changed files with 62 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
no-resolv
no-hosts
interface={{ hass_interface }}
dhcp-range={{ hass_dhcp_range.start }},{{ hass_dhcp_range.end }},{{ hass_dhcp_lease_time }}
domain={{ hass_dns_domain }}
log-queries=extra
dhcp-range=set:homeassistant,{{ hass_dhcp_range.start }},{{ hass_dhcp_range.end }},{{ hass_dhcp_lease_time }}
domain={{ hass_dns_domain }},{{ hass_net_cidr }}
interface-name={{ homeassistant_server_name }},{{ hass_interface }}
{% if hass_net_gateway|d %}
dhcp-option=option:router,{{ hass_net_gateway }}
{% endif %}