comparison inventory.py @ 289:65e28d2e0cd8

move static templates to files/ ; use inventory tags for selecting hosts+features ; other refactors
author drewp@bigasterisk.com
date Sun, 21 Apr 2024 17:07:23 -0700
parents e10ee3ddadcf
children d000aead76d4
comparison
equal deleted inserted replaced
288:3af02e24eaf9 289:65e28d2e0cd8
1 big = [ 1 big = [
2 ('bang', { 'wireguard_address': '10.5.0.1', }), 2 ('bang' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'k8s_admin': True , 'syncthing': True, 'wireguard_address': '10.5.0.1' , }),
3 ('dash', { 'wireguard_address': '10.5.0.5', 'ssh_hostname': 'dash', }), 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', }),
4 ('slash', { 'wireguard_address': '10.5.0.6', 'ssh_hostname': 'slash', }), 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' , }),
5 ('dot', { 'wireguard_address': '10.5.0.30', 'ssh_hostname': 'dot', }), 5 ('dot' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'ssh_hostname': 'dot' , 'syncthing': True, 'wireguard_address': '10.5.0.30', }),
6 ('ditto', { 'wireguard_address': '10.5.0.7', }), 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', }),
7 # ('squib', { }), 7 ('squib' , { 'drewp_gid': 1000, 'drewp_uid': 501, }),
8 ] 8 ]
9 9
10 small = [ 10 small = [
11 ('pipe', { 'wireguard_address': '10.5.0.3', 'ssh_hostname': '10.2.0.3', }), 11 ('pipe' , { 'drewp_gid': 501 , 'drewp_uid': 1001, 'ssh_hostname': '10.2.0.3' , 'wireguard_address': '10.5.0.3' , }),
12 ] 12 ]
13 13
14 pi = [ 14 pi = [
15 # ('garage', { 'wireguard_address': '10.5.0.14', 'ssh_hostname': 'garage', }), 15 ('garage' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'garage' , 'wireguard_address': '10.5.0.14' , }),
16 ('ws-printer', { 'wireguard_address': '10.5.0.31', 'ssh_hostname': 'ws-printer', }), 16 ('ws-printer', { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'ws-printer5', 'wireguard_address': '10.5.0.31' , }),
17 ('gn-music', { 'wireguard_address': '10.5.0.32', 'ssh_hostname': 'gn-music', }), 17 ('li-drums' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'li-drums5' , 'wireguard_address': '10.5.0.33' , }),
18 ('li-drums', { 'wireguard_address': '10.5.0.33', 'ssh_hostname': 'li-drums', }), 18 ('gn-music' , { 'drewp_gid': 501 , 'drewp_uid': 1000, 'ssh_hostname': 'gn-music' , 'wireguard_address': '10.5.0.32' , }),
19 ] 19 ]
20 20
21 remote = [ 21 hosted = [
22 ('prime', { 'wireguard_address': '10.5.0.2', 'ssh_hostname': '162.243.138.136','mac': '04:01:09:7f:89:01',}), 22 ('prime' , { 'drewp_gid': 1000, 'drewp_uid': 501, 'ssh_hostname': '162.243.138.136', 'wireguard_address': '10.5.0.2' , }),
23 ('plus', { 'wireguard_address': '10.5.0.110','ssh_hostname': '10.2.0.35', }),
24 ('pillow', { 'wireguard_address': '10.5.0.111','ssh_hostname':'10.5.0.111',}),
25 ] 23 ]
24
25 laptop = [
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', }),
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 ]