changeset 162:e3212146960b

ditto networking
author drewp@bigasterisk.com
date Thu, 16 Mar 2023 17:48:32 -0700
parents 1e0ad9fa7488
children f06fe96a3b64
files dns.py net.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dns.py	Thu Mar 16 17:47:59 2023 -0700
+++ b/dns.py	Thu Mar 16 17:48:32 2023 -0700
@@ -32,6 +32,9 @@
 
     dnsmasq_instance('10.5', house_iface='unused', dhcp_range='unused', router='unused')  # only works after wireguard is up
 
+elif host.name == 'ditto':
+    systemd.service(service='dnsmasq', enabled=False, running=False)
+
 elif host.name == 'pipe':
     systemd.service(service='dnsmasq', enabled=False, running=False)
     files.directory(path='/opt/dnsmasq')
--- a/net.py	Thu Mar 16 17:47:59 2023 -0700
+++ b/net.py	Thu Mar 16 17:48:32 2023 -0700
@@ -39,8 +39,8 @@
 ])
 # needs reboot if this changed
 
-if host.name in ['slash', 'dash']:
-    pass # don't break k3s networking!
+if host.name in ['slash', 'dash', 'ditto']:
+    pass # don't break k3s networking! the else-part really breaks it
 else:
     server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True)