Add vhost_custom_fragment option to wsgi/apache_api

Change-Id: I7da55899b9108daced7adb8f82bdb58fcf97aa09
This commit is contained in:
Emilien Macchi 2020-01-22 08:59:50 -05:00
parent 01e6e6681b
commit 9fce8d211e
3 changed files with 12 additions and 0 deletions

View File

@ -85,6 +85,10 @@
# (optional) Name of the WSGI process display-name.
# Defaults to undef
#
# [*vhost_custom_fragment*]
# (optional) Additional vhost configuration, if applicable.
# Defaults to undef
#
# == Dependencies
#
# requires Class['apache'] & Class['heat']
@ -116,6 +120,7 @@ class heat::wsgi::apache_api (
$error_log_file = undef,
$custom_wsgi_process_options = {},
$wsgi_process_display_name = undef,
$vhost_custom_fragment = undef,
) {
heat::wsgi::apache { 'api':
port => $port,
@ -138,5 +143,6 @@ class heat::wsgi::apache_api (
access_log_format => $access_log_format,
error_log_file => $error_log_file,
wsgi_process_display_name => $wsgi_process_display_name,
vhost_custom_fragment => $vhost_custom_fragment,
}
}

View File

@ -0,0 +1,5 @@
---
features:
- |
vhost_custom_fragment was added to heat::wsgi::apache_api so one can
configure custom fragments for the Heat API vhost.

View File

@ -19,6 +19,7 @@ describe 'heat::wsgi::apache_api' do
:ssl_crl_path => nil,
:ssl_certs_dir => nil,
:wsgi_process_display_name => nil,
:vhost_custom_fragment => nil,
:threads => 1,
:priority => 10,
:custom_wsgi_process_options => {},