diff tasks.py @ 205:826db3c40fa7

whitespace/etc
author drewp@bigasterisk.com
date Fri, 07 Jul 2023 16:11:41 -0700
parents a5399e8b47b6
children 117cd86ffb53
line wrap: on
line diff
--- a/tasks.py	Fri Jun 30 22:40:27 2023 -0700
+++ b/tasks.py	Fri Jul 07 16:11:41 2023 -0700
@@ -7,60 +7,93 @@
 cd /my/proj/infra
 pdm run pyinfra '''
 
+
 def _run(ctx, s):
     ctx.run(cmd + 'inventory.py %s' % s, pty=True, echo=True)
 
 
 @task
-def users(ctx): _run(ctx, 'users.py')
+def users(ctx):
+    _run(ctx, 'users.py')
+
 
 @task
-def ssh(ctx): _run(ctx, 'ssh.py')
+def ssh(ctx):
+    _run(ctx, 'ssh.py')
+
 
 @task
-def system(ctx): _run(ctx, 'system.py')
+def system(ctx):
+    _run(ctx, 'system.py')
+
 
 @task
-def apt(ctx): _run(ctx, 'apt.py')
+def apt(ctx):
+    _run(ctx, 'apt.py')
+
 
 @task
-def packages(ctx): _run(ctx, 'packages.py')
+def packages(ctx):
+    _run(ctx, 'packages.py')
+
 
 @task
-def net(ctx): _run(ctx, 'net.py')
+def net(ctx):
+    _run(ctx, 'net.py')
+
 
 @task
-def dns(ctx): _run(ctx, 'dns.py')
+def dns(ctx):
+    _run(ctx, 'dns.py')
+
 
 @task
-def dns_check(ctx): _run(ctx, 'dns_check.py -v')
+def dns_check(ctx):
+    _run(ctx, 'dns_check.py -v')
+
 
 @task
-def dns_k8s_check(ctx): ctx.run('env/bin/python dns_k8s_check.py', pty=True)
+def dns_k8s_check(ctx):
+    ctx.run('env/bin/python dns_k8s_check.py', pty=True)
+
 
 @task
-def wireguard(ctx): _run(ctx, 'wireguard.py')
+def wireguard(ctx):
+    _run(ctx, 'wireguard.py')
+
 
 @task
-def kube(ctx): _run(ctx, 'kube.py')
+def kube(ctx):
+    _run(ctx, 'kube.py')
+
 
 @task
-def kube_bang(ctx): _run(ctx, 'kube.py --limit bang')
+def kube_bang(ctx):
+    _run(ctx, 'kube.py --limit bang')
+
 
 @task
-def sync(ctx): _run(ctx, 'sync.py')
+def sync(ctx):
+    _run(ctx, 'sync.py')
+
 
 @task
-def mail(ctx): _run(ctx, 'mail.py')
+def mail(ctx):
+    _run(ctx, 'mail.py')
+
 
 @task
-def home(ctx): _run(ctx, 'home.py')
+def home(ctx):
+    _run(ctx, 'home.py')
+
 
 @task
-def pipe(ctx): ctx.run(cmd + 'inventory.py pipe.py --limit pipe', pty=True)
+def pipe(ctx):
+    ctx.run(cmd + 'inventory.py pipe.py --limit pipe', pty=True)
+
 
 @task
-def multikube(ctx): # danger- wipes previous k3s
+def multikube(ctx):  # danger- wipes previous k3s
     from multikube_config import server_node, nodes
     ctx.run(cmd + 'inventory.py multikube_wipe.py', pty=True)
     ctx.run(cmd + f'inventory.py multikube.py --limit {server_node}', pty=True)