Mercurial > code > home > repos > infra
comparison sync.py @ 283:0befc8696a07
ws
author | drewp@bigasterisk.com |
---|---|
date | Mon, 15 Apr 2024 02:28:05 -0700 |
parents | 058c312ffdce |
children | 3af02e24eaf9 |
comparison
equal
deleted
inserted
replaced
282:e10ee3ddadcf | 283:0befc8696a07 |
---|---|
40 # also see /my/serv/filesync/syncthing/deploy.yaml for the container one | 40 # also see /my/serv/filesync/syncthing/deploy.yaml for the container one |
41 version = 'v1.26.1' | 41 version = 'v1.26.1' |
42 | 42 |
43 # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. | 43 # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. |
44 # Configs are in ~/.config/syncthing/ on each box | 44 # Configs are in ~/.config/syncthing/ on each box |
45 if host.name in ['dash', 'dot', 'slash', 'plus', 'bang' ,'ditto', 'pillow']: | 45 if host.name in ['dash', 'dot', 'slash', 'plus', 'bang', 'ditto', 'pillow']: |
46 apt.packages(packages=['syncthing'], present=False) | 46 apt.packages(packages=['syncthing'], present=False) |
47 user = 'ari' if host.name == 'dot' else 'drewp' | 47 user = 'ari' if host.name == 'dot' else 'drewp' |
48 | 48 |
49 if not host_running_version(user, version): | 49 if not host_running_version(user, version): |
50 install_syncthing(user, version) | 50 install_syncthing(user, version) |