recommit for updates in build 208
This commit is contained in:
@@ -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 => $frontend_order,
|
order => $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 { "backend_${name}_${index}":
|
concat::fragment { "backend_${name}_${index}":
|
||||||
target => $hy_main_config,
|
target => $hy_main_config,
|
||||||
content => template($hy_backendrule),
|
content => template($hy_backendrule),
|
||||||
order => "${backend_order}${index}", # Ensure unique order for each backend
|
order => "${backend_order}${index}",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$backends_created = true
|
||||||
|
}
|
||||||
|
|
||||||
# # create backend section
|
# # create backend section
|
||||||
# concat::fragment { "backend_${name}":
|
# concat::fragment { "backend_${name}":
|
||||||
|
|||||||
Reference in New Issue
Block a user