mirror of
https://github.com/unman/shaker.git
synced 2024-12-25 23:39:30 -05:00
Syncthing - initial build
This commit is contained in:
parent
94bc7b2e7b
commit
868338cef0
8
syncthing/clone.sls
Normal file
8
syncthing/clone.sls
Normal 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
4
syncthing/clone.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- syncthing.clone
|
18
syncthing/create.sls
Normal file
18
syncthing/create.sls
Normal 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
4
syncthing/create.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
dom0:
|
||||
- match: nodegroup
|
||||
- syncthing.create
|
35
syncthing/install.sls
Normal file
35
syncthing/install.sls
Normal 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
5
syncthing/install.top
Normal file
@ -0,0 +1,5 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
base:
|
||||
template-syncthing:
|
||||
- syncthing.install
|
BIN
syncthing/syncthing-archive-keyring.gpg
Normal file
BIN
syncthing/syncthing-archive-keyring.gpg
Normal file
Binary file not shown.
1
syncthing/syncthing.list
Normal file
1
syncthing/syncthing.list
Normal file
@ -0,0 +1 @@
|
||||
deb [signed-by=/usr/share/keyrings/syncting-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable
|
Loading…
Reference in New Issue
Block a user