Add support for DEFAULT_BOOT_SOURCE

Change-Id: I1d77d7076f845e2fc47a4132eabe442091a63374
This commit is contained in:
Takashi Kajinami 2022-01-10 14:21:01 +09:00
parent e7590f7026
commit 32f52c19ca
3 changed files with 17 additions and 0 deletions

View File

@ -509,6 +509,11 @@
# will disable the function in Horizon, direct will allow the user agent to directly
# talk to the glance-api.
#
# [*default_boot_source*]
# (optional) A default instance boot source. Allowed values are: "image",
# "snapshot", "volume" and "volume_snapshot".
# Defaults to undef
#
# DEPRECATED PARAMETERS
#
# [*enable_user_pass*]
@ -620,6 +625,7 @@ class horizon(
$password_validator_help = undef,
$customization_module = undef,
$horizon_upload_mode = undef,
$default_boot_source = undef,
# DEPRECATED PARAMETERS
$enable_user_pass = undef,
) inherits horizon::params {

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``horizon::default_boot_source`` parameter has been added.

View File

@ -1030,3 +1030,10 @@ DISALLOW_IFRAME_EMBED = <%= @disallow_iframe_embed.to_s.capitalize %>
<% if @horizon_upload_mode_real -%>
HORIZON_IMAGES_UPLOAD_MODE = "<%= @horizon_upload_mode_real %>"
<%- end -%>
# A default instance boot source. Allowed values are: "image", "snapshot",
# "volume" and "volume_snapshot"
#DEFAULT_BOOT_SOURCE = "image"
<% if @default_boot_source -%>
DEFAULT_BOOT_SOURCE = "<%= @default_boot_source %>"
<%- end -%>