Code Review
/
apex-puppet-tripleo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8c99073
)
Fix puppet warning for empty value
author
Emilien Macchi
<emilien@redhat.com>
Fri, 6 Jan 2017 15:06:39 +0000
(10:06 -0500)
committer
Emilien Macchi
<emilien@redhat.com>
Fri, 6 Jan 2017 15:06:39 +0000
(10:06 -0500)
Unknown variable: 'haproxy_ssl_firewall_rules' when public_ssl_port is
empty.
Fixing it by setting an empty hash in this case.
Change-Id: If864732262852ef79ebb91ee77902c86b847072a
manifests/haproxy/endpoint.pp
patch
|
blob
|
history
diff --git
a/manifests/haproxy/endpoint.pp
b/manifests/haproxy/endpoint.pp
index
0bba245
..
2f60b24
100644
(file)
--- a/
manifests/haproxy/endpoint.pp
+++ b/
manifests/haproxy/endpoint.pp
@@
-166,6
+166,8
@@
define tripleo::haproxy::endpoint (
'dport' => $public_ssl_port,
},
}
+ } else {
+ $haproxy_ssl_firewall_rules = {}
}
$firewall_rules = merge($haproxy_firewall_rules, $haproxy_ssl_firewall_rules)
if $service_port or $public_ssl_port {