comparison tasks.py @ 320:11d3bcedb9f0

updates for tofu rebuild; some dead code; start moving tasks into subdirs with their files and templates
author drewp@bigasterisk.com
date Fri, 08 Nov 2024 23:16:56 -0800
parents 2d20824d8e8b
children 4d1b6a6e65d2
comparison
equal deleted inserted replaced
319:2e6dbebb2cb3 320:11d3bcedb9f0
7 cd /my/proj/infra 7 cd /my/proj/infra
8 pdm run pyinfra ''' 8 pdm run pyinfra '''
9 9
10 10
11 def _run(ctx, s): 11 def _run(ctx, s):
12 ctx.run(cmd + '--no-wait inventory.py %s' % s, pty=True, echo=True) 12 ctx.run(cmd + '--no-wait -y inventory.py %s' % s, pty=True, echo=True)
13 13
14 14
15 @task 15 @task
16 def users(ctx): 16 def users(ctx):
17 _run(ctx, 'users.py') 17 _run(ctx, 'users.py')
27 _run(ctx, 'system.py') 27 _run(ctx, 'system.py')
28 28
29 29
30 @task 30 @task
31 def apt(ctx): 31 def apt(ctx):
32 _run(ctx, 'apt.py') 32 _run(ctx, 'apt/apt.py')
33 33
34 34
35 @task 35 @task
36 def packages(ctx): 36 def packages(ctx):
37 _run(ctx, 'packages.py') 37 _run(ctx, 'packages.py')
100 def all(ctx): 100 def all(ctx):
101 configs = [ 101 configs = [
102 'users.py', 102 'users.py',
103 'ssh.py', 103 'ssh.py',
104 'system.py', 104 'system.py',
105 'apt.py', 105 'apt/apt.py',
106 'packages.py', 106 'packages.py',
107 'net.py', 107 'net.py',
108 'dns.py', 108 'dns.py',
109 'wireguard.py', 109 'wireguard.py',
110 'kube.py', 110 'kube.py',