recommit for updates in build 208

This commit is contained in:
Jenkins ConfDroid
2025-02-08 14:55:55 +01:00
parent 9fa04b5123
commit bb23e2b9d7

View File

@@ -510,7 +510,11 @@ instance configuration.</p>
89 89
90 90
91 91
92</pre> 92
93
94
95
96</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 24</span> <pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 24</span>
@@ -566,15 +570,19 @@ define cd_haproxy::server::proxy (
order =&gt; $frontend_order, order =&gt; $frontend_order,
} }
# Flag to ensure backends are only created once
$backends_created = false
# Create backend sections dynamically based on $backend_configs unless $backends_created {
$backend_configs.each |$index, $backend_config| { $backend_configs.each |$index, $backend_config| {
concat::fragment { &quot;backend_${name}_${index}&quot;: concat::fragment { &quot;backend_${name}_${index}&quot;:
target =&gt; $hy_main_config, target =&gt; $hy_main_config,
content =&gt; template($hy_backendrule), content =&gt; template($hy_backendrule),
order =&gt; &quot;${backend_order}${index}&quot;, # Ensure unique order for each backend order =&gt; &quot;${backend_order}${index}&quot;,
} }
} }
$backends_created = true
}
# # create backend section # # create backend section
# concat::fragment { &quot;backend_${name}&quot;: # concat::fragment { &quot;backend_${name}&quot;: