Mercurial > code > home > repos > infra
diff sync.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 | 5f3e053ba888 |
line wrap: on
line diff
--- a/sync.py Sun Apr 21 17:01:13 2024 -0700 +++ b/sync.py Sun Apr 21 17:07:23 2024 -0700 @@ -41,7 +41,7 @@ # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. # Configs are in ~/.config/syncthing/ on each box -if host.name in ['dash', 'dot', 'slash', 'plus', 'bang', 'ditto', 'pillow']: +if host.data.get('syncthing'): apt.packages(packages=['syncthing'], present=False) user = 'ari' if host.name == 'dot' else 'drewp'