Syncthing - initial build

This commit is contained in:
unman 2022-09-02 14:30:05 +00:00
parent 94bc7b2e7b
commit 868338cef0
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
8 changed files with 75 additions and 0 deletions

8
syncthing/clone.sls Normal file
View File

@ -0,0 +1,8 @@
syncthing_precursor:
qvm.template_installed:
- name: debian-11-minimal
syncthing_clone:
qvm.clone:
- name: template-syncthing
- source: debian-11-minimal

4
syncthing/clone.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- syncthing.clone

18
syncthing/create.sls Normal file
View File

@ -0,0 +1,18 @@
include:
- syncthing.clone
qvm-present-id:
qvm.present:
- name: syncthing
- template: template-syncthing
- label: gray
qvm-prefs-id:
qvm.prefs:
- name: syncthing
- memory: 300
- maxmem: 800
- vcpus: 2
'qvm-volume extend syncthing:private 30G' :
cmd.run

4
syncthing/create.top Normal file
View File

@ -0,0 +1,4 @@
base:
dom0:
- match: nodegroup
- syncthing.create

35
syncthing/install.sls Normal file
View File

@ -0,0 +1,35 @@
# 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
syncthing:
pkg.uptodate:
- refresh: True
installed:
pkg.installed:
- pkgs:
- firefox-esr
- syncthing
- qubes-core-agent-networking
{% endif %}

5
syncthing/install.top Normal file
View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
template-syncthing:
- syncthing.install

Binary file not shown.

1
syncthing/syncthing.list Normal file
View File

@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/syncting-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable