Mercurial > code > home > repos > infra
comparison 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 |
comparison
equal
deleted
inserted
replaced
288:3af02e24eaf9 | 289:65e28d2e0cd8 |
---|---|
39 # also see /my/serv/filesync/syncthing/deploy.yaml for the container one | 39 # also see /my/serv/filesync/syncthing/deploy.yaml for the container one |
40 version = 'v1.26.1' | 40 version = 'v1.26.1' |
41 | 41 |
42 # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. | 42 # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. |
43 # Configs are in ~/.config/syncthing/ on each box | 43 # Configs are in ~/.config/syncthing/ on each box |
44 if host.name in ['dash', 'dot', 'slash', 'plus', 'bang', 'ditto', 'pillow']: | 44 if host.data.get('syncthing'): |
45 apt.packages(packages=['syncthing'], present=False) | 45 apt.packages(packages=['syncthing'], present=False) |
46 user = 'ari' if host.name == 'dot' else 'drewp' | 46 user = 'ari' if host.name == 'dot' else 'drewp' |
47 | 47 |
48 if not host_running_version(user, version): | 48 if not host_running_version(user, version): |
49 install_syncthing(user, version) | 49 install_syncthing(user, version) |