Erweiterung 2 Lighthouses möglich

This commit is contained in:
2026-04-11 11:35:30 +02:00
parent ac5c71a43d
commit 3574ce95f2
9 changed files with 346 additions and 148 deletions

View File

@@ -1,4 +1,26 @@
---
# Normalize: if nebula_lighthouses list is empty, build it from the legacy
# single-lighthouse variables so the rest of the role only ever deals with the list.
_nebula_lighthouses_computed: >-
{{
nebula_lighthouses
if nebula_lighthouses | length > 0
else [
{
'hostname': nebula_lighthouse_hostname,
'internal_ip': nebula_lighthouse_internal_ip_addr,
'public_hostname': nebula_lighthouse_public_hostname,
'public_port': nebula_lighthouse_public_port,
'is_relay': nebula_lighthouse_is_relay
}
]
}}
# The primary lighthouse is always index [0] — it holds the CA key.
_nebula_primary_lighthouse: "{{ _nebula_lighthouses_computed[0] }}"
# CPU architectures map (unchanged from original)
nebula_architectures:
x86_64: "amd64"
armv7l: "arm-7"
aarch64: "arm64"
x86_64: amd64
aarch64: arm64
armv7l: arm