changeset 23:67fc0d4b1859

dead code
author drewp@bigasterisk.com
date Tue, 28 Dec 2021 22:10:02 -0800
parents 301dad3cdb7b
children ebcc782fabb8
files sync.py tasks.py
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/sync.py	Tue Dec 28 22:09:43 2021 -0800
+++ b/sync.py	Tue Dec 28 22:10:02 2021 -0800
@@ -2,10 +2,6 @@
 from pyinfra.facts.server import LinuxDistribution
 from pyinfra.operations import apt, systemd
 
-bang_is_old = True  # remove after upgrade
-is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux']
-is_wifi_pi = host.name in ['frontdoor', 'living']
-
 # bang instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd.
 # Configs are in ~/.config/syncthing/ on each box
 if host.name in ['dash', 'dot', 'slash', 'plus']:
--- a/tasks.py	Tue Dec 28 22:09:43 2021 -0800
+++ b/tasks.py	Tue Dec 28 22:10:02 2021 -0800
@@ -30,10 +30,7 @@
 
 @task
 def net(ctx):
-    # workaround for https://github.com/Fizzadar/pyinfra/issues/702
-    ctx.run(cmd + 'inventory.py exec -- rm -f /tmp/pyinfra-7ed098bf43cef74d8ab8ea095e4a95c92605c61c', pty=True, warn=True)
-
-    ctx.run(cmd + 'inventory.py net.py', pty=True)
+    ctx.run(cmd + 'inventory.py net.py -v --limit prime', pty=True)
 
 
 @task