Fix apache wsgi config for CentOS

The apache configuration file location is different between Ubuntu and CentOS.
Devstack provides us a helper function to get the correct filesystem path.
This patch switches the wsgi ProxyPass configuration to use this helper
function to place the file in the correct location.

Change-Id: Id0472fb25da106a74429e87ee26c5dfdd8c83b6f
This commit is contained in:
Michael Johnson 2021-11-22 23:17:24 +00:00
parent bee8dc032e
commit 17dc01d677
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ function configure_designate {
# We are using the http transport to work around an issue with
# broken connections when using the uwsgi protocol of a local socket
# See bug: https://github.com/unbit/uwsgi/issues/2368
echo 'ProxyPass "/dns" "http://127.0.0.1:60053" retry=0' | sudo tee /etc/apache2/sites-available/designate-api-wsgi.conf
wsgi_conf=$(apache_site_config_for designate-api-wsgi)
echo 'ProxyPass "/dns" "http://127.0.0.1:60053" retry=0' | sudo tee $wsgi_conf
iniset $DESIGNATE_UWSGI_CONF uwsgi http-socket 127.0.0.1:60053
else
_config_designate_apache_wsgi