recommit for updates in build 204
This commit is contained in:
@@ -418,6 +418,19 @@ instance configuration.</p>
|
|||||||
|
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -485,7 +498,21 @@ instance configuration.</p>
|
|||||||
77
|
77
|
||||||
78
|
78
|
||||||
79
|
79
|
||||||
80</pre>
|
80
|
||||||
|
81
|
||||||
|
82
|
||||||
|
83
|
||||||
|
84
|
||||||
|
85
|
||||||
|
86
|
||||||
|
87
|
||||||
|
88
|
||||||
|
89
|
||||||
|
90
|
||||||
|
91
|
||||||
|
92
|
||||||
|
93
|
||||||
|
94</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>
|
||||||
@@ -511,6 +538,8 @@ define cd_haproxy::server::proxy (
|
|||||||
$be_option = '',
|
$be_option = '',
|
||||||
$fe_tcp_request = '',
|
$fe_tcp_request = '',
|
||||||
$fe_http_request = '',
|
$fe_http_request = '',
|
||||||
|
$backend_configs = [],
|
||||||
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@@ -539,12 +568,24 @@ define cd_haproxy::server::proxy (
|
|||||||
order => $frontend_order,
|
order => $frontend_order,
|
||||||
}
|
}
|
||||||
|
|
||||||
# create backend section
|
|
||||||
concat::fragment { "backend_${name}":
|
# Create backend sections dynamically based on $backend_configs
|
||||||
|
$backend_configs.each |$index, $backend_config| {
|
||||||
|
concat::fragment { "backend_${name}_${index}":
|
||||||
target => $hy_main_config,
|
target => $hy_main_config,
|
||||||
content => template($hy_backendrule),
|
content => template($hy_backendrule),
|
||||||
order => $backend_order,
|
order => $backend_order,
|
||||||
|
# Use variables from the backend config for each backend
|
||||||
|
variables => $backend_config,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# # create backend section
|
||||||
|
# concat::fragment { "backend_${name}":
|
||||||
|
# target => $hy_main_config,
|
||||||
|
# content => template($hy_backendrule),
|
||||||
|
# order => $backend_order,
|
||||||
|
# }
|
||||||
|
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user