From acc08ab9986b94dcd783e233eae269ae299af1a1 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 28 Jul 2023 16:42:08 +0900 Subject: [PATCH] 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 --- manifests/horizon.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/horizon.pp b/manifests/horizon.pp index 8f2232c6a..2234c3454 100644 --- a/manifests/horizon.pp +++ b/manifests/horizon.pp @@ -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': } }