add CUSTOM_THEME_PATH variable

* It allows to specify custom theme path

Change-Id: I5fa9e232427f9e3bef4662b01421b5dbbcaefeed
This commit is contained in:
vsaienko 2015-08-06 01:11:30 +03:00
parent 331fc0c867
commit e3bc1cb958
3 changed files with 18 additions and 1 deletions

View File

@ -209,6 +209,10 @@
# (optional) Tuskar-UI - Deployment mode ('poc' or 'scale')
# Defaults to 'scale'
#
# [*custom_theme_path*]
# (optional) The directory location for the theme (e.g., "static/themes/blue")
# Default to undefined
#
# === Examples
#
# class { 'horizon':
@ -261,6 +265,7 @@ class horizon(
$tuskar_ui_ironic_discoverd_url = 'http://127.0.0.1:5050',
$tuskar_ui_undercloud_admin_password = undef,
$tuskar_ui_deployment_mode = 'scale',
$custom_theme_path = undef,
# DEPRECATED PARAMETERS
$can_set_mount_point = undef,
$vhost_extra_params = undef,

View File

@ -101,7 +101,8 @@ describe 'horizon' do
:neutron_options => {'enable_lb' => true, 'enable_firewall' => true, 'enable_quotas' => false, 'enable_security_group' => false, 'enable_vpn' => true,
'enable_distributed_router' => false, 'enable_ha_router' => false, 'profile_support' => 'cisco', },
:file_upload_temp_dir => '/var/spool/horizon',
:secure_cookies => true
:secure_cookies => true,
:custom_theme_path => 'static/themes/green'
})
end
@ -132,6 +133,7 @@ describe 'horizon' do
'OPENSTACK_ENDPOINT_TYPE = "internalURL"',
'SECONDARY_ENDPOINT_TYPE = "ANY-VALUE"',
'API_RESULT_LIMIT = 4682',
"CUSTOM_THEME_PATH = 'static/themes/green'",
" 'level': 'DEBUG',",
" 'handlers': ['syslog'],",
'COMPRESS_OFFLINE = False',

View File

@ -281,6 +281,16 @@ EXTERNAL_MONITORING = <%= @horizon_app_links %>
# 'reverse': False,
# }
# CUSTOM_THEME_PATH allows to set to the directory location for the
# theme (e.g., "static/themes/blue"). The path can either be
# relative to the openstack_dashboard directory or an absolute path
# to an accessible location on the file system.
# If not specified, the default CUSTOM_THEME_PATH is
# static/themes/default.
<% if @custom_theme_path %>
CUSTOM_THEME_PATH = '<%= @custom_theme_path %>'
<% end %>
# The Horizon Policy Enforcement engine uses these values to load per service
# policy rule files. The content of these files should match the files the
# OpenStack services are using to determine role based access control in the