personal_infra/ansible/services/headscale/headscale_vars.yml

26 lines
724 B
YAML
Raw Normal View History

2025-10-22 23:58:38 +02:00
# Headscale service configuration
headscale_subdomain: headscale
headscale_port: 8080
headscale_grpc_port: 50443
# Version
headscale_version: "0.26.1"
2025-11-03 16:51:53 +01:00
# Namespace for devices (users in headscale terminology)
headscale_namespace: counter-net
2025-10-22 23:58:38 +02:00
# Caddy
caddy_sites_dir: /etc/caddy/sites-enabled
# Data directory
headscale_data_dir: /var/lib/headscale
# Remote access
2025-11-03 16:51:53 +01:00
remote_host: "{{ groups['spacey'][0] }}"
2025-10-22 23:58:38 +02:00
remote_user: "{{ hostvars[remote_host]['ansible_user'] }}"
remote_key_file: "{{ hostvars[remote_host]['ansible_ssh_private_key_file'] | default('') }}"
# Local backup
local_backup_dir: "{{ lookup('env', 'HOME') }}/headscale-backups"
backup_script_path: "{{ lookup('env', 'HOME') }}/.local/bin/headscale_backup.sh"