comparison home.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 3af02e24eaf9
children 11d3bcedb9f0
comparison
equal deleted inserted replaced
288:3af02e24eaf9 289:65e28d2e0cd8
1 from pyinfra import host 1 from pyinfra import host
2 from pyinfra.operations import files, server 2 from pyinfra.operations import files, server
3 3
4 if host.name in [ 4 if host.data.get('drewp_home'):
5 'dash',
6 'slash',
7 'bang',
8 'ditto',
9 ]:
10 # maybe bring sync.py in here too 5 # maybe bring sync.py in here too
11 6
12 server.shell(commands=['chsh -s /bin/zsh drewp']) 7 server.shell(commands=['chsh -s /bin/zsh drewp'])
13 files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True) 8 files.link(path='/home/drewp/.aptitude/config', target='../own/config/aptitude-config', force=True)
14 files.link(path='/home/drewp/.config/blender', target='../own/config/blender', force=True) 9 files.link(path='/home/drewp/.config/blender', target='../own/config/blender', force=True)