aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-01-13 18:26:15 +0200
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-01-13 18:26:15 +0200
commitb4ec7f7f47a356fc622c73b0822fa18e67a4519a (patch)
treef93ceb8834814f45dd9faf1b8b91429b74361051
parent69d44747ecd9f8fb0c171a7b533f8c3a81d89c5d (diff)
Enable X-Forwarded-Proto header for cinder
Change-Id: I3bd836140537fc5b7e3fba600a712d6a9d6f1185
-rw-r--r--manifests/loadbalancer.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp
index de995de..dbfc570 100644
--- a/manifests/loadbalancer.pp
+++ b/manifests/loadbalancer.pp
@@ -814,6 +814,10 @@ class tripleo::loadbalancer (
haproxy::listen { 'cinder':
bind => $cinder_bind_opts,
collect_exported => false,
+ mode => 'http', # Needed for http-request option
+ options => {
+ 'http-request' => ['set-header X-Forwarded-Proto https if { ssl_fc }'],
+ },
}
haproxy::balancermember { 'cinder':
listening_service => 'cinder',