set novnc protocol depending on is ssl is enabled on horizon

Change-Id: Iaacc2c9e48e4fd70c87965395545624d42dee95a
This commit is contained in:
Kanzhe Jiang 2016-01-05 13:20:02 -08:00
parent 357d34c0cc
commit 1b054d29be
1 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,15 @@ class bcf::p_only::compute {
enable => true,
}
$public_ssl = hiera('public_ssl')
$horizon_ssl = $public_ssl['horizon']
if $horizon_ssl {
$novnc_protocol = 'https'
}
else {
$novnc_protocol = 'http'
}
# update nova.conf for novncproxy_base_url
ini_setting { "nova novncproxy_base_url":
ensure => present,