From 302f388f35d438137a8d1c1410c6a15487dfba65 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 11 Jan 2022 18:37:35 +0900 Subject: [PATCH] Fix dependency to purge default vhost config It turned out defining dependency for openstacklib::wsgi::apache doesn't properly enforce resource order and the default vhost file is not purged properly. This change adds the more explicit dependency to enforce the order properly. Change-Id: I21a4fb74b16449db00ba59ba6a058b25e8640abd --- manifests/wsgi/apache.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/wsgi/apache.pp b/manifests/wsgi/apache.pp index c70bda1..bf76780 100644 --- a/manifests/wsgi/apache.pp +++ b/manifests/wsgi/apache.pp @@ -127,6 +127,8 @@ class cloudkitty::wsgi::apache ( include cloudkitty::deps include cloudkitty::params + Anchor['cloudkitty::install::end'] -> Class['apache'] + ::openstacklib::wsgi::apache { 'cloudkitty_wsgi': bind_host => $bind_host, bind_port => $port, @@ -155,6 +157,5 @@ class cloudkitty::wsgi::apache ( access_log_file => $access_log_file, access_log_format => $access_log_format, error_log_file => $error_log_file, - require => Anchor['cloudkitty::install::end'], } }