From a70fbe8016d08f6e33c487f17fc49a881b59b93e Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 3 Mar 2014 13:38:07 +0100 Subject: [PATCH] dashboard: add SSL support Close bug #319 Signed-off-by: Emilien Macchi --- manifests/dashboard.pp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/manifests/dashboard.pp b/manifests/dashboard.pp index 7d17a652..c100c389 100644 --- a/manifests/dashboard.pp +++ b/manifests/dashboard.pp @@ -57,6 +57,18 @@ # (optional) Enable debug or not. #  Defaults to params. # +# [*listen_ssl*] +# (optional) Enable SSL support in Apache. (Defaults to false) +# +# [*horizon_cert*] +# (required with listen_ssl) Certificate to use for SSL support. +# +# [*horizon_key*] +# (required with listen_ssl) Private key to use for SSL support. +# +# [*horizon_ca*] +# (required with listen_ssl) CA certificate to use for SSL support. +# class cloud::dashboard( $ks_keystone_internal_host = $os_params::ks_keystone_internal_host, @@ -67,7 +79,11 @@ class cloud::dashboard( $keystone_host = $os_params::ks_keystone_internal_host, $keystone_proto = $os_params::ks_keystone_internal_proto, $keystone_port = $os_params::ks_keystone_internal_port, - $debug = $os_params::debug + $debug = $os_params::debug, + $listen_ssl = false, + $horizon_cert = undef, + $horizon_key = undef, + $horizon_ca = undef, ) { # We build the param needed for horizon class @@ -85,7 +101,11 @@ class cloud::dashboard( keystone_url => $keystone_url, cache_server_ip => false, django_debug => $debug, - neutron_options => { 'enable_lb' => true } + neutron_options => { 'enable_lb' => true }, + listen_ssl => $listen_ssl, + horizon_cert => $horizon_cert, + horizon_key => $horizon_key, + horizon_ca => $horizon_ca } if ($::osfamily == 'Debian') {