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: I3f8346d8df6c60b36e2abe281e87163b1e2837e6
This commit is contained in:
Takashi Kajinami 2022-01-11 18:43:34 +09:00
parent 63b791ef4f
commit fdaced52dc
1 changed files with 2 additions and 1 deletions

View File

@ -143,6 +143,8 @@ define heat::wsgi::apache (
include heat::deps
include heat::params
Anchor['heat::install::end'] -> Class['apache']
::openstacklib::wsgi::apache { "heat_${title}_wsgi":
bind_host => $bind_host,
bind_port => $port,
@ -169,7 +171,6 @@ define heat::wsgi::apache (
wsgi_script_source => getvar("::heat::params::heat_${title}_wsgi_script_source"),
custom_wsgi_process_options => $custom_wsgi_process_options,
allow_encoded_slashes => 'on',
require => Anchor['heat::install::end'],
vhost_custom_fragment => $vhost_custom_fragment,
access_log_file => $access_log_file,
access_log_format => $access_log_format,