horizon: fix setenv vhost config to use setenvif
Closes-bug #520 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
3b90a496fb
commit
48ef6de397
@ -102,13 +102,13 @@ class cloud::dashboard(
|
||||
|
||||
# Apache2 specific configuration
|
||||
if $ssl_forward {
|
||||
$set_env_real = ['SetEnvIf X-Forwarded-Proto https HTTPS=1']
|
||||
$setenvif = ['X-Forwarded-Proto https HTTPS=1']
|
||||
} else {
|
||||
$set_env_real = []
|
||||
$setenvif = []
|
||||
}
|
||||
$vhost_extra_params = {
|
||||
'add_listen' => true,
|
||||
'setenv' => $set_env_real
|
||||
'setenvif' => $setenvif
|
||||
}
|
||||
ensure_resource('class', 'apache', {
|
||||
default_vhost => false
|
||||
|
@ -51,7 +51,7 @@ describe 'cloud::dashboard' do
|
||||
:neutron_options => { 'enable_lb' => true },
|
||||
:vhost_extra_params => {
|
||||
'add_listen' => true ,
|
||||
'setenv' => ['SetEnvIf X-Forwarded-Proto https HTTPS=1']
|
||||
'setenvif' => ['X-Forwarded-Proto https HTTPS=1']
|
||||
}
|
||||
)
|
||||
should contain_class('apache').with(:default_vhost => false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user