Mercurial > code > home > repos > infra
comparison dns.py @ 61:b46df76991b6
10.1 cleanups; verbose settings; address updates
author | drewp@bigasterisk.com |
---|---|
date | Sun, 01 May 2022 23:34:01 -0700 |
parents | 8945bf71da22 |
children | 49a69852a4f4 |
comparison
equal
deleted
inserted
replaced
60:a949704defd0 | 61:b46df76991b6 |
---|---|
33 systemd.service(service='dnsmasq', enabled=False, running=False) | 33 systemd.service(service='dnsmasq', enabled=False, running=False) |
34 files.directory(path='/opt/dnsmasq') | 34 files.directory(path='/opt/dnsmasq') |
35 | 35 |
36 dhcp_hosts = prepare_dhcp_hosts() | 36 dhcp_hosts = prepare_dhcp_hosts() |
37 | 37 |
38 for net_name in ['10.1', '10.2', '10.5']: | 38 for net_name in ['10.2', '10.5']: |
39 files.directory(path=f'/opt/dnsmasq/{net_name}') | 39 files.directory(path=f'/opt/dnsmasq/{net_name}') |
40 files.template(src='templates/dnsmasq/dnsmasq.conf.j2', dest=f'/opt/dnsmasq/{net_name}/dnsmasq.conf', net=net_name) | 40 files.template(src='templates/dnsmasq/dnsmasq.conf.j2', dest=f'/opt/dnsmasq/{net_name}/dnsmasq.conf', net=net_name) |
41 files.template(src='templates/dnsmasq/hosts.j2', dest=f'/opt/dnsmasq/{net_name}/hosts', net=net_name) | 41 files.template(src='templates/dnsmasq/hosts.j2', dest=f'/opt/dnsmasq/{net_name}/hosts', net=net_name) |
42 files.template(src=dhcp_hosts.name, dest=f'/opt/dnsmasq/{net_name}/dhcp_hosts', net=net_name) | 42 files.template(src=dhcp_hosts.name, dest=f'/opt/dnsmasq/{net_name}/dhcp_hosts', net=net_name) |
43 | 43 |