Mercurial > code > home > repos > infra
annotate inventory.py @ 302:3204157bb3e5
attempt to fix http-registry problem on rpi
author | drewp@bigasterisk.com |
---|---|
date | Wed, 07 Aug 2024 00:59:16 -0700 |
parents | 730eea6d809c |
children | 8c25b1a8f294 |
rev | line source |
---|---|
0
1550a6db59b3
first ported section from ansible. shorter, faster, clearer.
drewp@bigasterisk.com
parents:
diff
changeset
|
1 big = [ |
301 | 2 # ('bang' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'k8s_admin': True , 'syncthing': True, 'wireguard_address': '10.5.0.1' , }), |
289
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', }), |
301 | 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 = [ |
301 | 15 #('garage' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'garage' , 'wireguard_address': '10.5.0.14' , }), |
289
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' , }), |
301 | 17 #('li-drums' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'li-drums5' , 'wireguard_address': '10.5.0.33' , }), |
18 # ('gn-music' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'gn-music5' , '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 = [ |
301 | 26 #('plus' , { 'drewp_gid': 1000, 'drewp_home': True, 'drewp_uid': 501, 'ssh_hostname': 'plus5' , 'syncthing': True, 'wg_roamer': True, 'wireguard_address': '10.5.0.110', }), |
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', }), | |
28 #('tofu' , { 'drewp_gid': 1000, 'drewp_home': True, '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 ] |