Recommend dashboard-specific classes
Currently puppet-horizon has implementations to allow more flexible customization of specific dashboars(heat, octavia and manila) while it provides the basic one to only install plugin packages. This change adds a warning message to let users aware of the new classes which provides more complete support for dashboard parameters. Change-Id: I1baa3f166ef895bfb55302f144b696a9ace293cc
This commit is contained in:
parent
2182b0d0da
commit
8bf867856f
@ -28,8 +28,8 @@
|
||||
#
|
||||
# == Example:
|
||||
#
|
||||
# This will install the correct heat-dashboard package for your deployment.
|
||||
# horizon::dashboard { 'heat': }
|
||||
# This will install the correct cloudkitty-dashboard package for your deployment.
|
||||
# horizon::dashboard { 'cloudkitty': }
|
||||
#
|
||||
define horizon::dashboard (
|
||||
$ensure = 'present',
|
||||
@ -37,6 +37,11 @@ define horizon::dashboard (
|
||||
|
||||
$dashboard = downcase($name)
|
||||
|
||||
if $dashboard in ['heat', 'octavia', 'manila'] {
|
||||
warning("Use the horizon::dashboard::${dashboard} class instead. \
|
||||
The class allows more flexible customization of the ${dashboard} dashboard.")
|
||||
}
|
||||
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
$dashboard_package_name = "python3-${dashboard}-dashboard"
|
||||
|
Loading…
x
Reference in New Issue
Block a user