Mercurial > code > home > repos > infra
annotate inventory.py @ 297:d000aead76d4
add tofu
author | drewp@bigasterisk.com |
---|---|
date | Wed, 15 May 2024 17:38:52 -0700 |
parents | 65e28d2e0cd8 |
children | 730eea6d809c |
rev | line source |
---|---|
0
1550a6db59b3
first ported section from ansible. shorter, faster, clearer.
drewp@bigasterisk.com
parents:
diff
changeset
|
1 big = [ |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
2 ('bang' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'k8s_admin': True , 'syncthing': True, 'wireguard_address': '10.5.0.1' , }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
3 ('dash' , { 'drewp_gid': 1000, 'drewp_home': True, 'drewp_uid': 501, 'gpu': True , 'k8s_admin': True , 'ssh_hostname': 'dash', 'syncthing': True, 'wireguard_address': '10.5.0.5', }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
4 ('slash' , { 'drewp_gid': 1000, 'drewp_home': True, 'drewp_uid': 501, 'k8s_admin': True , 'ssh_hostname': 'slash', 'syncthing': True, 'wireguard_address': '10.5.0.6' , }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
5 ('dot' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'ssh_hostname': 'dot' , 'syncthing': True, 'wireguard_address': '10.5.0.30', }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
6 ('ditto' , { 'coral': True, 'drewp_gid': 1000, 'drewp_home': True, 'drewp_uid': 501, 'gpu': True , 'k8s_admin': True, 'syncthing': True, 'wireguard_address': '10.5.0.7', }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
7 ('squib' , { 'drewp_gid': 1000, 'drewp_uid': 501, }), |
0
1550a6db59b3
first ported section from ansible. shorter, faster, clearer.
drewp@bigasterisk.com
parents:
diff
changeset
|
8 ] |
20 | 9 |
69 | 10 small = [ |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
11 ('pipe' , { 'drewp_gid': 501 , 'drewp_uid': 1001, 'ssh_hostname': '10.2.0.3' , 'wireguard_address': '10.5.0.3' , }), |
69 | 12 ] |
13 | |
1 | 14 pi = [ |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
15 ('garage' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'garage' , 'wireguard_address': '10.5.0.14' , }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
16 ('ws-printer', { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'ws-printer5', 'wireguard_address': '10.5.0.31' , }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
17 ('li-drums' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'li-drums5' , 'wireguard_address': '10.5.0.33' , }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
18 ('gn-music' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'gn-music' , 'wireguard_address': '10.5.0.32' , }), |
1 | 19 ] |
5 | 20 |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
21 hosted = [ |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
22 ('prime' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'ssh_hostname': '162.243.138.136', 'wireguard_address': '10.5.0.2' , }), |
5 | 23 ] |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
24 |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
25 laptop = [ |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
26 ('plus' , { 'drewp_gid': 1000, 'drewp_home': True, 'drewp_uid': 501, 'ssh_hostname': '10.2.0.35' , 'syncthing': True, 'wg_roamer': True, 'wireguard_address': '10.5.0.110', }), |
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
27 ('pillow' , { 'drewp_gid': 1000, 'drewp_uid': 1000 , 'ssh_hostname': '10.5.0.111' , 'syncthing': True, 'wg_roamer': True, 'wireguard_address': '10.5.0.111', }), |
297 | 28 ('tofu' , { 'drewp_gid': 1000, 'drewp_uid': 501 , 'ssh_hostname': '10.2.0.137' , 'syncthing': True, 'wg_roamer': True, 'wireguard_address': '10.5.0.113', }), |
289
65e28d2e0cd8
move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
drewp@bigasterisk.com
parents:
282
diff
changeset
|
29 ] |