recommit for updates in build 204

This commit is contained in:
Jenkins ConfDroid
2025-02-08 13:53:47 +01:00
parent 5bf7a90b1e
commit c38e4092b2

View File

@@ -418,6 +418,19 @@ instance configuration.</p>
</li>
<li>
<span class='name'>backend_configs</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>[]</tt>)</em>
</li>
</ul>
@@ -485,7 +498,21 @@ instance configuration.</p>
77
78
79
80</pre>
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 24</span>
@@ -511,6 +538,8 @@ define cd_haproxy::server::proxy (
$be_option = &#39;&#39;,
$fe_tcp_request = &#39;&#39;,
$fe_http_request = &#39;&#39;,
$backend_configs = [],
) {
@@ -534,18 +563,30 @@ define cd_haproxy::server::proxy (
# create frontend section
concat::fragment { &quot;frontend_${name}&quot;:
target =&gt; $hy_main_config,
content =&gt; template($hy_frontendrule),
order =&gt; $frontend_order,
target =&gt; $hy_main_config,
content =&gt; template($hy_frontendrule),
order =&gt; $frontend_order,
}
# create backend section
concat::fragment { &quot;backend_${name}&quot;:
target =&gt; $hy_main_config,
content =&gt; template($hy_backendrule),
order =&gt; $backend_order,
# Create backend sections dynamically based on $backend_configs
$backend_configs.each |$index, $backend_config| {
concat::fragment { &quot;backend_${name}_${index}&quot;:
target =&gt; $hy_main_config,
content =&gt; template($hy_backendrule),
order =&gt; $backend_order,
# Use variables from the backend config for each backend
variables =&gt; $backend_config,
}
}
# # create backend section
# concat::fragment { &quot;backend_${name}&quot;:
# target =&gt; $hy_main_config,
# content =&gt; template($hy_backendrule),
# order =&gt; $backend_order,
# }
}</pre>
</td>
</tr>