Horizon: Enable policy settings

This enables the horizon::policy class to test management of policy
files. Note that we enable the feature only in CentOS for now, because
Ubuntu/Debian packages do not install the policy files into the config
directory.

Change-Id: I6870052ff2c10a8d169f91af0559b8178dcd62ed
This commit is contained in:
Takashi Kajinami 2023-07-28 16:42:08 +09:00
parent 81a94be30d
commit acc08ab998

View File

@ -64,6 +64,12 @@ class openstack_integration::horizon (
compress_offline => false,
}
# TODO(tkajinam) Debian/Ubuntu package does not install the policy files
# to /etc/openstack-dashboard
if $facts['os']['family'] == 'RedHat' {
include horizon::policy
}
if $heat_enabled {
class { 'horizon::dashboards::heat': }
}