HAProxy: Set listen options for internal services too
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 8 Aug 2017 14:40:29 +0000 (17:40 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 11 Aug 2017 04:23:43 +0000 (04:23 +0000)
This was missed from a previous commit, as described in the bug report.
We need to set this variable in this case as well, else it will use the
undefined variable, thus ignoring anything that the user had set.

Change-Id: I6810e7bb3eed16a6478974ac759c3f720a41120a
Closes-Bug: #1709332

manifests/haproxy/endpoint.pp

index 9139061..bc00f2d 100644 (file)
@@ -133,6 +133,7 @@ define tripleo::haproxy::endpoint (
   } else {
     # internal service only
     $public_bind_opts = {}
+    $listen_options_real = $listen_options
   }
 
   if $use_internal_certificates {