mirror of
https://github.com/unman/shaker.git
synced 2025-04-21 15:56:36 -04:00
Tailscale - Create template and install service
This commit is contained in:
parent
6e641c4cd1
commit
37c93eb8a9
87
tailscale/repo.sls
Normal file
87
tailscale/repo.sls
Normal file
@ -0,0 +1,87 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
{% if salt['pillar.get']('update_proxy:caching') %}
|
||||
{% set proxy = 'cacher' %}
|
||||
{% endif %}
|
||||
|
||||
{% if grains['nodename'] != 'dom0' %}
|
||||
{% if grains['os_family']|lower == 'debian' %}
|
||||
{% if grains['nodename']|lower != 'host' %}
|
||||
{% if proxy == 'cacher' %}
|
||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
- name: {{ repo }}
|
||||
- pattern: 'https://'
|
||||
- repl: 'http://HTTPS///'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
{% endfor %}
|
||||
|
||||
/etc/apt/sources.list:
|
||||
file.replace:
|
||||
- name: /etc/apt/sources.list
|
||||
- pattern: 'https:'
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
{% endif %}
|
||||
|
||||
requirements_installed:
|
||||
pkg.installed:
|
||||
- refresh: True
|
||||
- pkgs:
|
||||
- qubes-core-agent-networking
|
||||
- qubes-core-agent-passwordless-root
|
||||
- iproute2
|
||||
- libnotify-bin
|
||||
- lsb-release
|
||||
- xz-utils
|
||||
|
||||
/etc/apt/sources.list.d/tailscale.list:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://tailscale/tailscale.list
|
||||
- user: root
|
||||
- group: root
|
||||
- makedirs: True
|
||||
|
||||
/usr/share/keyrings/tailscale-achive-keyring.gpg:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://tailscale/tailscale-archive-keyring.gpg
|
||||
- user: root
|
||||
- group: root
|
||||
- makedirs: True
|
||||
|
||||
{% if proxy == 'cacher' %}
|
||||
/etc/apt/sources.list.d/tailscale.list:
|
||||
file.replace:
|
||||
- name: /etc/apt/sources.list.d/tailscale.list
|
||||
- pattern: 'https:'
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
|
||||
{% endif %}
|
||||
|
||||
tailscale_installed:
|
||||
pkg.installed:
|
||||
- refresh: True
|
||||
- pkgs:
|
||||
- tailscale
|
||||
|
||||
{% endif %}
|
||||
|
||||
disable_tailscaled:
|
||||
service.disabled:
|
||||
- name: tailscaled
|
||||
|
||||
mask_tailscaled:
|
||||
service.masked:
|
||||
- name: tailscaled
|
BIN
tailscale/tailscale-archive-keyring.gpg
Normal file
BIN
tailscale/tailscale-archive-keyring.gpg
Normal file
Binary file not shown.
2
tailscale/tailscale.list
Normal file
2
tailscale/tailscale.list
Normal file
@ -0,0 +1,2 @@
|
||||
# Tailscale packages for debian bookworm
|
||||
deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/debian bookworm main
|
Loading…
x
Reference in New Issue
Block a user