Skip to content

Commit ab004fc

Browse files
authored
Add Headscale support (#243)
1 parent 13f6391 commit ab004fc

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

deploy_control_plane.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
tags: metal-db
1717
- name: metal-roles/control-plane/roles/ipam-db
1818
tags: ipam-db
19+
- name: metal-roles/control-plane/roles/headscale
20+
tags: headscale
1921
- name: metal-roles/control-plane/roles/masterdata-db
2022
tags: masterdata-db
2123
- name: metal-roles/control-plane/roles/auditing-timescaledb

inventories/group_vars/all/images.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ setup_yaml:
2222
# metal_console_image_tag:
2323
# metal_core_image_name:
2424
# metal_core_image_tag:
25+
# headscale_image_tag: v0.26.1
26+
# headscale_db_backup_restore_sidecar_image_tag: latest
27+
# headscale_db_backup_restore_sidecar_image_name: ghcr.io/metal-stack/backup-restore-sidecar
28+
# headscale_db_image_tag: 17-alpine
29+
# headscale_db_image_name: postgres
2530
# ...
2631
#
2732

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
headscale_tls: no
3+
4+
# only hexadecimal passwords are allowed and need to be prefixed with "privkey:"
5+
# should be 64 characters long
6+
headscale_private_key: privkey:38f1186d8c9d468379f1143282ae37f4259cb617b7aa52de223d90f605983c58
7+
headscale_noise_private_key: privkey:38f1186d8c9d468379f1143282ae37f4259cb617b7aa52de223d90f605983c58
8+
9+
headscale_db_storage_size: 200Mi
10+
headscale_db_password: a-secure-password
11+
headscale_db_resources: {}
12+
13+
headscale_ipv6_prefix: fd7a:115c:a1e0::/48

inventories/group_vars/control-plane/metal.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
metal_set_resource_limits: no
33
metal_check_api_health_endpoint: http://api.{{ metal_control_plane_ingress_dns }}:8080/metal/v1/health
4+
metal_api_headscale_control_plane_address: "http://headscale.{{ metal_control_plane_ingress_dns }}:8080"
45

56
# metal_helm_chart_local_path: /helm-charts/charts/metal-control-plane
67

@@ -162,3 +163,7 @@ metal_api_grpc_certs_ca_cert: "{{ lookup('file', 'certs/ca.pem') }}"
162163

163164
# auditing
164165
metal_auditing_timescaledb_enabled: true
166+
167+
# headscale
168+
metal_api_headscale_enabled: true
169+
metal_api_headscale_tls: no

0 commit comments

Comments
 (0)