Mercurial > code > home > repos > infra
diff tasks.py @ 12:15c5ce7c74b5
refactor, cleanup, split large deploys
author | drewp@bigasterisk.com |
---|---|
date | Thu, 11 Nov 2021 23:31:21 -0800 |
parents | 226f3c8419b2 |
children | ac4d24d01b68 |
line wrap: on
line diff
--- a/tasks.py Thu Nov 11 22:46:32 2021 -0800 +++ b/tasks.py Thu Nov 11 23:31:21 2021 -0800 @@ -14,16 +14,26 @@ @task +def ssh(ctx): + ctx.run(cmd + 'inventory.py ssh.py', pty=True) + + +@task def system(ctx): ctx.run(cmd + 'inventory.py system.py', pty=True) @task +def packages(ctx): + ctx.run(cmd + 'inventory.py packages.py', pty=True) + + +@task def net(ctx): # workaround for https://github.com/Fizzadar/pyinfra/issues/702 - ctx.run(cmd + '-vv inventory.py exec -- rm -f /tmp/pyinfra-7ed098bf43cef74d8ab8ea095e4a95c92605c61c', pty=True) + ctx.run(cmd + 'inventory.py exec -- rm -f /tmp/pyinfra-7ed098bf43cef74d8ab8ea095e4a95c92605c61c', pty=True, warn=True) - ctx.run(cmd + '-vv inventory.py net.py --limit slash ', pty=True) + ctx.run(cmd + 'inventory.py net.py', pty=True) @task @@ -33,7 +43,8 @@ @task def kube(ctx): - ctx.run(cmd + 'inventory.py kube.py --limit dash --limit garage', pty=True) + ctx.run(cmd + 'inventory.py kube.py ', pty=True) + @task