harmony/opnsense-config/src
Ian Letourneau ed7f81aa1f
Some checks are pending
Run Check Script / check (push) Waiting to run
Compile and package harmony_composer / package_harmony_composer (push) Waiting to run
fix(opnsense-config): ensure load balancer service configuration is idempotent (#129)
The previous implementation blindly added HAProxy components without checking for existing configurations on the same port, which caused duplicate entries and errors when a service was updated.

This commit refactors the logic to a robust "remove-then-add" strategy. The configure_service method now finds and removes any existing frontend and its dependent components (backend, servers, health check) before adding the new, complete service definition.

This change makes the process fully idempotent, preventing configuration drift and ensuring a predictable state.

Co-authored-by: Ian Letourneau <letourneau.ian@gmail.com>
Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/129
2025-10-20 19:18:49 +00:00
..
config fix(opnsense-config): ensure load balancer service configuration is idempotent (#129) 2025-10-20 19:18:49 +00:00
modules fix(opnsense-config): ensure load balancer service configuration is idempotent (#129) 2025-10-20 19:18:49 +00:00
tests/data feat(opnsense-config): dnsmasq dhcp static mappings (#130) 2025-09-08 19:06:17 +00:00
error.rs chore: Reorganize file tree for easier onboarding. Rust project now at the root for simple git clone && cargo run 2025-02-12 15:32:59 -05:00
lib.rs feat: add mariadb helm deployment to lamp interpreter 2025-04-30 15:40:26 -04:00