Support the SYSTEM_SCOPE_SERVICES parameter
The SYSTEM_SCOPE_SERVICES parameter was introduced during stable/yoga, to enable usage of system scope tokens per service. This change adds support for the parameter so that users can customize the parameter using this module. Change-Id: I921a913c51801083a2f799ab3d0d1debc62c8f2a
This commit is contained in:
parent
00ce4ba698
commit
3f6b4b33a4
|
@ -531,6 +531,10 @@
|
|||
# "snapshot", "volume" and "volume_snapshot".
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*system_scope_services*]
|
||||
# (optional) Enable the use of the system scope token on per-service basis.
|
||||
# Defaults to undef
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*enable_user_pass*]
|
||||
|
@ -646,6 +650,7 @@ class horizon(
|
|||
$customization_module = undef,
|
||||
$horizon_upload_mode = undef,
|
||||
$default_boot_source = undef,
|
||||
$system_scope_services = undef,
|
||||
# DEPRECATED PARAMETERS
|
||||
$enable_user_pass = undef,
|
||||
) inherits horizon::params {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
The new ``horizon::system_scope_services`` parameter has been added.
|
|
@ -1042,3 +1042,14 @@ HORIZON_IMAGES_UPLOAD_MODE = "<%= @horizon_upload_mode_real %>"
|
|||
<% if @default_boot_source -%>
|
||||
DEFAULT_BOOT_SOURCE = "<%= @default_boot_source %>"
|
||||
<%- end -%>
|
||||
|
||||
# Services may require a System Scope token for certain operations. This
|
||||
# settings enables the use of the system scope token on per-service basis.
|
||||
#SYSTEM_SCOPE_SERVICES = []
|
||||
<% if ! @system_scope_services.nil? -%>
|
||||
<% if @system_scope_services.kind_of?(Array) -%>
|
||||
SYSTEM_SCOPE_SERVICES = ['<%= @system_scope_services.join("', '") %>']
|
||||
<%- else -%>
|
||||
SYSTEM_SCOPE_SERVICES = ['<%= @system_scope_services %>']
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
|
|
Loading…
Reference in New Issue