Adding listen_options for Contrail Webui https in haproxy
authorMichael Henkel <mhenkel@juniper.net>
Wed, 22 Mar 2017 14:08:36 +0000 (15:08 +0100)
committerMichael Henkel <mhenkel@juniper.net>
Wed, 22 Mar 2017 14:10:25 +0000 (15:10 +0100)
Without balance source and hash-type consistent traffic to
Contrail Webui https is not correctly load-balanced

Change-Id: I05a5aeea7db801c1403ef3c4dd4f94480fd8692e

manifests/haproxy.pp

index 92edd71..122604b 100644 (file)
@@ -1641,6 +1641,10 @@ class tripleo::haproxy (
       ip_addresses      => hiera('contrail_config_node_ips'),
       server_names      => hiera('contrail_config_node_ips'),
       public_ssl_port   => $ports[contrail_webui_https_port],
+      listen_options    => {
+          'balance'   => 'source',
+          'hash-type' => 'consistent',
+      }
     }
   }
 }