update proxy and tmplate
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user