Settle on v1 setup method. Test run completed successfully from bootstrap to service setup.

- Refactor dnsmasq configuration and scripts for improved variable handling and clarity
- Updated dnsmasq configuration files to use direct variable references instead of data source functions for better readability.
- Modified setup scripts to ensure they are run from the correct environment and directory, checking for the WC_HOME variable.
- Changed paths in README and scripts to reflect the new directory structure.
- Enhanced error handling in setup scripts to provide clearer guidance on required configurations.
- Adjusted kernel and initramfs URLs in boot.ipxe to use the updated variable references.
This commit is contained in:
2025-06-24 15:12:53 -07:00
parent 335cca1eba
commit f1fe4f9cc2
165 changed files with 15838 additions and 1003 deletions

View File

@@ -1,26 +1,24 @@
# Configuration file for dnsmasq.
# Basic Settings
interface={{ (ds "config").cloud.dnsmasq.interface }}
listen-address={{ (ds "config").cloud.dns.ip }}
interface={{ .cloud.dnsmasq.interface }}
listen-address={{ .cloud.dns.ip }}
domain-needed
bogus-priv
no-resolv
# DNS Forwarding
# local=/{{ (ds "config").cloud.domain }}/
# address=/{{ (ds "config").cloud.domain }}/{{ (ds "config").cluster.endpointIp }}
# local=/{{ (ds "config").cloud.internalDomain }}/
# address=/{{ (ds "config").cloud.internalDomain }}/{{ (ds "config").cluster.endpointIp }}
server=/{{ (ds "config").cloud.domain }}/{{ (ds "config").cluster.endpointIp }}
server=/{{ (ds "config").cloud.internalDomain }}/{{ (ds "config").cluster.endpointIp }}
local=/{{ .cloud.domain }}/
address=/{{ .cloud.domain }}/{{ .cluster.loadBalancerIp }}
local=/{{ .cloud.internalDomain }}/
address=/{{ .cloud.internalDomain }}/{{ .cluster.loadBalancerIp }}
server=1.1.1.1
server=8.8.8.8
# --- DHCP Settings ---
dhcp-range={{ (ds "config").cloud.dhcpRange }},12h
dhcp-option=3,{{ (ds "config").cloud.router.ip }} # gateway to assign
dhcp-option=6,{{ (ds "config").cloud.dns.ip }} # dns to assign
dhcp-range={{ .cloud.dhcpRange }},12h
dhcp-option=3,{{ .cloud.router.ip }} # gateway to assign
dhcp-option=6,{{ .cloud.dns.ip }} # dns to assign
# --- PXE Booting ---
enable-tftp
@@ -34,7 +32,7 @@ dhcp-match=set:efi-arm64,option:client-arch,11
dhcp-boot=tag:efi-arm64,ipxe-arm64.efi
dhcp-userclass=set:ipxe,iPXE
dhcp-boot=tag:ipxe,http://{{ (ds "config").cloud.dns.ip }}/boot.ipxe
dhcp-boot=tag:ipxe,http://{{ .cloud.dns.ip }}/boot.ipxe
log-queries
log-dhcp