Mercurial > code > home > repos > infra
comparison dns.py @ 121:2ece7ed8b4e3
filled up address space again, with lightswitches this time
author | drewp@bigasterisk.com |
---|---|
date | Wed, 07 Dec 2022 23:13:24 -0800 |
parents | 661af5652dfa |
children | 9b5bbaf37dbe |
comparison
equal
deleted
inserted
replaced
120:661af5652dfa | 121:2ece7ed8b4e3 |
---|---|
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.200', | 40 dhcp_range='10.2.0.121,10.2.0.230', |
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') |