diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-07-08 11:27:11 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-07-08 11:27:11 +0000 |
commit | 03f4c4ffaa21bfea5b9da2a2592198c24cd1d61d (patch) | |
tree | 2d634da213886d98c269cdeb13bd529fbb03df82 /manifests | |
parent | cc67ec8170cc14c2cfbc7bcc486cc70257aa1d2d (diff) | |
parent | e8714e037268807d2fcdb735b8df7c958c8570ab (diff) |
Merge "Fix Heat 302 redirects"
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/loadbalancer.pp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index f7a4ff8..f9877a6 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -538,6 +538,10 @@ class tripleo::loadbalancer ( "${heat_api_vip}:8004" => [], "${public_virtual_ip}:13004" => ['ssl', 'crt', $heat_bind_certificate], } + $heat_options = { + 'option' => [ 'httpchk GET /' ], + 'rsprep' => "^Location:\\ http://${public_virtual_ip}(.*) Location:\\ https://${public_virtual_ip}\\1", + } $heat_cw_bind_opts = { "${heat_api_vip}:8003" => [], "${public_virtual_ip}:13003" => ['ssl', 'crt', $heat_bind_certificate], @@ -551,6 +555,9 @@ class tripleo::loadbalancer ( "${heat_api_vip}:8004" => [], "${public_virtual_ip}:8004" => [], } + $heat_options = { + 'option' => [ 'httpchk GET /' ], + } $heat_cw_bind_opts = { "${heat_api_vip}:8003" => [], "${public_virtual_ip}:8003" => [], @@ -824,10 +831,9 @@ class tripleo::loadbalancer ( if $heat_api { haproxy::listen { 'heat_api': bind => $heat_bind_opts, - options => { - 'option' => [ 'httpchk GET /' ], - }, + options => $heat_options, collect_exported => false, + mode => 'http', } haproxy::balancermember { 'heat_api': listening_service => 'heat_api', |