update proxy and tmplate

This commit is contained in:
Arne Teuke
2025-02-08 14:11:23 +01:00
parent 7f8c595e76
commit 3484c34167
2 changed files with 13 additions and 15 deletions

View File

@@ -76,11 +76,9 @@ define cd_haproxy::server::proxy (
# Create backend sections dynamically based on $backend_configs
$backend_configs.each |$index, $backend_config| {
concat::fragment { "backend_${name}_${index}":
target => $hy_main_config,
content => template($hy_backendrule),
order => $backend_order,
# Use variables from the backend config for each backend
variables => $backend_config,
target => $hy_main_config,
content => template($hy_backendrule),
order => "${backend_order}${index}", # Ensure unique order for each backend
}
}