Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headscale support #117

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6ec7bbe
headscale config
GrigoriyMikhalkin Aug 30, 2022
03bf0ae
images update
GrigoriyMikhalkin Sep 13, 2022
a4508a0
polishing
GrigoriyMikhalkin Sep 13, 2022
1e312e2
remove tmp files
GrigoriyMikhalkin Sep 13, 2022
9fd8309
Update inventories/group_vars/control-plane/metal.yml
GrigoriyMikhalkin Sep 14, 2022
6a0f897
clean group vars
GrigoriyMikhalkin Sep 14, 2022
b0bce3a
headscale api url update
GrigoriyMikhalkin Sep 23, 2022
c6348f7
headscale config
GrigoriyMikhalkin Aug 30, 2022
f48c54a
images update
GrigoriyMikhalkin Sep 13, 2022
343b883
polishing
GrigoriyMikhalkin Sep 13, 2022
d21f162
remove tmp files
GrigoriyMikhalkin Sep 13, 2022
403b966
clean group vars
GrigoriyMikhalkin Sep 14, 2022
3c2b6a8
headscale api url update
GrigoriyMikhalkin Sep 23, 2022
e46e2a8
Merge branch 'headscale' of github.com:metal-stack/mini-lab into head…
GrigoriyMikhalkin Oct 25, 2022
2d0a903
Update inventories/group_vars/all/images.yaml
GrigoriyMikhalkin Nov 8, 2022
c7714e5
Update inventories/group_vars/control-plane/headscale.yaml
GrigoriyMikhalkin Nov 8, 2022
7a31625
headscale config
GrigoriyMikhalkin Aug 30, 2022
b025f57
images update
GrigoriyMikhalkin Sep 13, 2022
d3e0aed
polishing
GrigoriyMikhalkin Sep 13, 2022
d622e60
remove tmp files
GrigoriyMikhalkin Sep 13, 2022
ed6009f
clean group vars
GrigoriyMikhalkin Sep 14, 2022
a906423
headscale api url update
GrigoriyMikhalkin Sep 23, 2022
51bda84
headscale config
GrigoriyMikhalkin Aug 30, 2022
16f24b4
images update
GrigoriyMikhalkin Sep 13, 2022
66114d9
polishing
GrigoriyMikhalkin Sep 13, 2022
c9f9c5d
remove tmp files
GrigoriyMikhalkin Sep 13, 2022
3bc8034
clean group vars
GrigoriyMikhalkin Sep 14, 2022
05fd715
Update inventories/group_vars/all/images.yaml
GrigoriyMikhalkin Nov 8, 2022
58af576
Update inventories/group_vars/control-plane/headscale.yaml
GrigoriyMikhalkin Nov 8, 2022
22d6197
update noise priv key
GrigoriyMikhalkin Nov 9, 2022
1224e4b
Merge branch 'headscale' of github.com:metal-stack/mini-lab into head…
GrigoriyMikhalkin Nov 9, 2022
9a11515
Merge branch 'master' of github.com:metal-stack/mini-lab into headscale
GrigoriyMikhalkin Nov 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ metal-hammer*
requirements.yaml
.extra_vars.yaml
sonic-vs.img
.mini-lab.cumulus.yml.*
4 changes: 3 additions & 1 deletion deploy_control_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
tags: metal-db
- name: metal-roles/control-plane/roles/ipam-db
tags: ipam-db
- name: metal-roles/control-plane/roles/headscale
tags: headscale
- name: metal-roles/control-plane/roles/masterdata-db
tags: masterdata-db
- name: metal-roles/control-plane/roles/metal
tags: metal
tags: metal
2 changes: 1 addition & 1 deletion inventories/group_vars/all/images.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
metal_stack_release_version: v0.11.0
metal_stack_release_version: v0.11.3

##
## for development purposes, you can override releases from our image vector here
Expand Down
6 changes: 6 additions & 0 deletions inventories/group_vars/control-plane/headscale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
headscale_tls: no
headscale_db_storage_size: 200Mi
headscale_private_key: c8e07b737d04715f1f5c1318334e888f65e6a704ea85d0cddaa31b2c5589ef7f
GrigoriyMikhalkin marked this conversation as resolved.
Show resolved Hide resolved
headscale_noise_private_key: 580b8691e0e1f7cd74cf6154e890df015b3d7a0611a06efa5e2fd543ab13be4b
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
headscale_noise_private_key: 580b8691e0e1f7cd74cf6154e890df015b3d7a0611a06efa5e2fd543ab13be4b
headscale_noise_private_key: 580b8691e0e1f7cd74cf6154e890df015b3d7a0611a06efa5e2fd543ab13be4b
# a private ipv6 prefix can be generated according RFC 4193
headscale_ip_prefixes:
- fd43:9c0b:d229::/48

headscale_db_resources: {}
20 changes: 12 additions & 8 deletions inventories/group_vars/control-plane/metal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
metal_set_resource_limits: no
metal_check_api_health_endpoint: http://api.172.17.0.1.nip.io:8080/metal/v1/health
metal_api_headscale_control_plane_address: "http://headscale.{{ metal_control_plane_ingress_dns }}:8080"

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

Expand All @@ -12,16 +13,16 @@ metal_api_admin_key: metal-admin
metal_api_nsq_tcp_address: nsqd:4150

metal_api_images:
- id: firewall-ubuntu-2.0.20220830
name: Firewall 2 Ubuntu 20220830
description: Firewall 2 Ubuntu 20220830
url: http://images.metal-stack.io/metal-os/firewall/2.0-ubuntu/20220830/img.tar.lz4
- id: firewall-ubuntu-2.0.20221025
name: Firewall 2 Ubuntu 20221025
description: Firewall 2 Ubuntu 20221025
url: http://images.metal-stack.io/metal-os/firewall/2.0-ubuntu/20221025/img.tar.lz4
features:
- firewall
- id: ubuntu-20.04.20220830
name: Ubuntu 20.04 20220830
description: Ubuntu 20.04 20220830
url: http://images.metal-stack.io/metal-os/ubuntu/20.04/20220830/img.tar.lz4
- id: ubuntu-20.04.20221025
name: Ubuntu 20.04 20221025
description: Ubuntu 20.04 20221025
url: http://images.metal-stack.io/metal-os/ubuntu/20.04/20221025/img.tar.lz4
features:
- machine

Expand Down Expand Up @@ -122,3 +123,6 @@ metal_api_grpc_certs_server_cert: "{{ lookup('file', 'certs/grpc/server.pem') }
metal_api_grpc_certs_client_key: "{{ lookup('file', 'certs/grpc/client-key.pem') }}"
metal_api_grpc_certs_client_cert: "{{ lookup('file', 'certs/grpc/client.pem') }}"
metal_api_grpc_certs_ca_cert: "{{ lookup('file', 'certs/ca.pem') }}"

metal_api_headscale_enabled: true
metal_api_headscale_tls: no