Ensure we set $haproxy_firewall_rules variable

If we do not set a default value for that one, we might hit the
following puppet warning:

Warning: Unknown variable: 'haproxy_firewall_rules'. (file:
/etc/puppet/modules/tripleo/manifests/haproxy/endpoint.pp, line: 303,
column: 54)

Change-Id: I6eb75c88e06281c61e4317fe8722e4bdfa572fe4
(cherry picked from commit 34bf20d668)
This commit is contained in:
Cédric Jeanneret 2019-08-08 10:02:48 +02:00 committed by Michele Baldessari
parent 3c4748b462
commit ed6c6b003c
1 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,8 @@ define tripleo::haproxy::endpoint (
'dport' => $haproxy_port_real,
},
}
} else {
$haproxy_firewall_rules = {}
}
if $public_ssl_port {
$haproxy_ssl_firewall_rules = {