Tailscale - Create sys-tailscale and configure binds

This commit is contained in:
unman 2025-04-11 13:39:12 +00:00
parent f629df4a4c
commit 81f204573e
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
3 changed files with 38 additions and 0 deletions

4
tailscale/50_user.conf Normal file
View File

@ -0,0 +1,4 @@
binds+=( '/var/cache/tailscale/' )
binds+=( '/var/lib/tailscale/' )
binds+=( '/var/log/tailscale/' )
binds+=( '/etc/default/tailscaled' )

22
tailscale/configure.sls Normal file
View File

@ -0,0 +1,22 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
{% if grains['nodename'] != 'dom0' %}
tailscale_rc.local:
file.append:
- name: /rw/config/rc.local
- text: |
systemctl unmask tailscaled
systemctl start tailscaled
tailscale up
tailscale_binds:
file.managed:
- name: /rw/config/qubes-bind-dirs.d/50_user.conf
- source:
- salt://tailscale/50_user.conf
- user: root
- group: root
- makedirs: True
{% endif %}

View File

@ -0,0 +1,12 @@
qvm-present-id:
qvm.present:
- name: sys-tailscale
- template: template-tailscale
- label: gray
qvm-prefs-id:
qvm.prefs:
- name: sys-tailscale
- memory: 400
- maxmem: 1000
- vcpus: 2