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: I5d03a133bb9d6e8a5ed67b7b06ee73608cff37ee
This commit is contained in:
Takashi Kajinami 2022-01-11 18:54:34 +09:00
parent 07822ab838
commit 2fb01b0a85
1 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,8 @@ class zaqar::wsgi::apache (
include zaqar::deps
include zaqar::params
Anchor['zaqar::install::end'] -> Class['apache']
::openstacklib::wsgi::apache { 'zaqar_wsgi':
bind_host => $bind_host,
bind_port => $port,
@ -151,7 +153,6 @@ class zaqar::wsgi::apache (
wsgi_script_dir => $::zaqar::params::zaqar_wsgi_script_path,
wsgi_script_file => 'zaqar-server',
wsgi_script_source => $::zaqar::params::zaqar_wsgi_script_source,
require => Anchor['zaqar::install::end'],
vhost_custom_fragment => 'WSGICallableObject app',
access_log_file => $access_log_file,
access_log_format => $access_log_format,