Fix Heat 302 redirects
authorBen Nemec <bnemec@redhat.com>
Mon, 29 Jun 2015 22:27:00 +0000 (22:27 +0000)
committerBen Nemec <bnemec@redhat.com>
Mon, 29 Jun 2015 22:27:00 +0000 (22:27 +0000)
commite8714e037268807d2fcdb735b8df7c958c8570ab
tree4ad42713f7e880d679760957c4b61085e0fcc01c
parentd8b609878f3fe90a417faae251925cf5a8e54a23
Fix Heat 302 redirects

When doing a heat stack-show, Heat initially returns a 302 redirect.
With the existing loadbalancer config for SSL, this results in a
redirect to an http:// address pointing at the SSL port, which
naturally doesn't work.

The fix for this is to use the rsprep haproxy option to rewrite the
Location header in responses from the Heat api server.  This allows
us to properly handle redirect traffic as https.

Also note that http header rewriting requires "mode http", so that
is added here as well.

Change-Id: I7e5c5b1877e9aa46c4b88dfba45c1fddf61727fc
manifests/loadbalancer.pp