adjust for horizon wsgi changes

puppet-horizon has now some wsgi_ parameters and the Debian
situation is resolved.
This commit is contained in:
Gonéri Le Bouder
2014-01-19 20:43:25 +01:00
parent 97ddf4ea31
commit b28613295a

View File

@@ -50,40 +50,19 @@ class cloud::dashboard(
$listen_ssl = false, $listen_ssl = false,
) { ) {
case $::osfamily { $supported = [ 'RedHat', 'Debian' ]
'RedHat': { if grep($supported, $::osfamily) != [$::osfamily] {
class {'horizon': fail("module puppet-horizon doesn't support ${::osfamily}")
secret_key => $secret_key, }
keystone_host => $ks_keystone_internal_host,
can_set_mount_point => 'False', class {'horizon':
# fqdn can can be ambiguous since we use reverse DNS here, secret_key => $secret_key,
# e.g: 127.0.0.1 instead of a public IP address. keystone_host => $ks_keystone_internal_host,
# We force $api_eth to avoid this situation can_set_mount_point => 'False',
fqdn => $api_eth # fqdn can can be ambiguous since we use reverse DNS here,
} # e.g: 127.0.0.1 instead of a public IP address.
} # We force $api_eth to avoid this situation
'Debian': { fqdn => $api_eth,
case $::operatingsystem {
'Debian': {
#FIXME(sbadia) https://review.openstack.org/#/c/64523/
fail('puppet-horizon does not work yet on Debian. Work in progress by https://review.openstack.org/#/c/64523/')
}
default: {
class {'horizon':
secret_key => $secret_key,
keystone_host => $ks_keystone_internal_host,
can_set_mount_point => 'False',
# fqdn can can be ambiguous since we use reverse DNS here,
# e.g: 127.0.0.1 instead of a public IP address.
# We force $api_eth to avoid this situation
fqdn => $api_eth
}
}
}
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module puppet-horizon only support osfamily RedHat and Debian")
}
} }
@@haproxy::balancermember{"${::fqdn}-horizon": @@haproxy::balancermember{"${::fqdn}-horizon":