Mercurial > code > home > repos > infra
comparison dns.py @ 134:9b5bbaf37dbe
even more addrs for dhcp
author | drewp@bigasterisk.com |
---|---|
date | Wed, 21 Dec 2022 17:40:16 -0800 |
parents | 2ece7ed8b4e3 |
children | e3212146960b |
comparison
equal
deleted
inserted
replaced
133:706d861f6d95 | 134:9b5bbaf37dbe |
---|---|
35 elif host.name == 'pipe': | 35 elif host.name == 'pipe': |
36 systemd.service(service='dnsmasq', enabled=False, running=False) | 36 systemd.service(service='dnsmasq', enabled=False, running=False) |
37 files.directory(path='/opt/dnsmasq') | 37 files.directory(path='/opt/dnsmasq') |
38 dnsmasq_instance('10.2', | 38 dnsmasq_instance('10.2', |
39 house_iface='eth1', | 39 house_iface='eth1', |
40 dhcp_range='10.2.0.121,10.2.0.230', | 40 dhcp_range='10.2.0.101,10.2.0.240', |
41 router='10.2.0.3', | 41 router='10.2.0.3', |
42 dhcp_hosts_filename='templates/dnsmasq/dhcp_hosts.j2') | 42 dhcp_hosts_filename='templates/dnsmasq/dhcp_hosts.j2') |
43 out = '/opt/dnsmasq/10.2' | 43 out = '/opt/dnsmasq/10.2' |
44 # This mtail is for dhcp command counts and errors. Another monitor in lanscape/ reads the leases file. | 44 # This mtail is for dhcp command counts and errors. Another monitor in lanscape/ reads the leases file. |
45 files.template(src='templates/dnsmasq/metrics.mtail.j2', dest=f'{out}/metrics.mtail') | 45 files.template(src='templates/dnsmasq/metrics.mtail.j2', dest=f'{out}/metrics.mtail') |