2022-09-02 10:30:05 -04:00
|
|
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
{% if grains['nodename'] != 'dom0' %}
|
|
|
|
|
|
|
|
/usr/share/keyrings/syncthing-archive-keyring.gpg:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://syncthing/syncthing-archive-keyring.gpg
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
/etc/apt/sources.list.d/syncthing.list:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://syncthing/syncthing.list
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- makedirs: True
|
|
|
|
|
2023-02-21 07:57:17 -05:00
|
|
|
|
|
|
|
{% if salt['pillar.get']('update_proxy:caching') %}
|
2022-09-07 19:15:15 -04:00
|
|
|
|
|
|
|
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
|
|
|
{{ repo }}_baseurl:
|
2022-09-08 09:37:40 -04:00
|
|
|
file.replace:
|
|
|
|
- name: {{ repo }}
|
|
|
|
- pattern: 'https://'
|
|
|
|
- repl: 'http://HTTPS///'
|
|
|
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
|
|
|
- backup: False
|
2022-09-07 19:15:15 -04:00
|
|
|
{% endfor %}
|
|
|
|
|
2022-09-08 09:37:40 -04:00
|
|
|
syncthing_repo:
|
|
|
|
file.replace:
|
|
|
|
- name: /etc/apt/sources.list.d/syncthing.list
|
|
|
|
- pattern: 'https://'
|
|
|
|
- repl: 'http://HTTPS///'
|
|
|
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
|
|
|
- backup: False
|
|
|
|
|
2022-09-07 19:15:15 -04:00
|
|
|
/etc/apt/sources.list:
|
|
|
|
file.replace:
|
|
|
|
- pattern: 'https://'
|
|
|
|
- repl: 'http://HTTPS///'
|
|
|
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
2022-09-08 09:37:40 -04:00
|
|
|
- backup: False
|
2022-09-07 19:15:15 -04:00
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2022-09-02 10:30:05 -04:00
|
|
|
syncthing:
|
|
|
|
pkg.uptodate:
|
|
|
|
- refresh: True
|
|
|
|
|
|
|
|
installed:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
|
|
|
- firefox-esr
|
|
|
|
- syncthing
|
|
|
|
- qubes-core-agent-networking
|
|
|
|
|
2022-09-07 19:15:15 -04:00
|
|
|
/etc/qubes-rpc/qubes.Syncthing:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://syncthing/qubes.Syncthing
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 755
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
/lib/systemd/system/qubes-syncthing.service:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://syncthing/qubes-syncthing.service
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 755
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
systemctl mask syncthing@user.service:
|
|
|
|
cmd.run
|
|
|
|
|
|
|
|
systemctl enable qubes-syncthing.service:
|
|
|
|
cmd.run
|
|
|
|
|
2022-09-02 10:30:05 -04:00
|
|
|
{% endif %}
|