From 5fd6e02e24c2372685b84ed7ff1205c5a9bcad18 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 11 Jan 2022 18:40:32 +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: Ifb8df042e06a275ca4dd44342d3c32af65f7d209 --- 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 58e52dd8..bf49ebe9 100644 --- a/manifests/wsgi/apache.pp +++ b/manifests/wsgi/apache.pp @@ -137,6 +137,8 @@ class gnocchi::wsgi::apache ( include gnocchi::deps include gnocchi::params + Anchor['gnocchi::install::end'] -> Class['apache'] + ::openstacklib::wsgi::apache { 'gnocchi_wsgi': bind_host => $bind_host, bind_port => $port, @@ -166,6 +168,5 @@ class gnocchi::wsgi::apache ( access_log_format => $access_log_format, error_log_file => $error_log_file, custom_wsgi_process_options => $custom_wsgi_process_options, - require => Anchor['gnocchi::install::end'], } }