Expose vhost_custom_fragment

It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Placement service.

Change-Id: If005af23c03726ecd562dfbc8d96c0a16fb25775
Signed-off-by: Luke Short <ekultails@gmail.com>
This commit is contained in:
Luke Short 2020-08-12 14:51:25 -04:00
parent ad44c681a9
commit 13a46814fa
2 changed files with 9 additions and 0 deletions

View File

@ -84,6 +84,11 @@
# (Optional) The error log file name for the virtualhost.
# Defaults to undef
#
# [*vhost_custom_fragment*]
# (optional) Passes a string of custom configuration
# directives to be placed at the end of the vhost configuration.
# Defaults to undef.
#
# == Examples
#
# include apache
@ -111,6 +116,7 @@ class placement::wsgi::apache (
$access_log_file = false,
$access_log_format = false,
$error_log_file = undef,
$vhost_custom_fragment = undef,
) {
include placement::params
@ -163,6 +169,7 @@ class placement::wsgi::apache (
ssl_key => $ssl_key,
threads => $threads,
user => 'placement',
vhost_custom_fragment => $vhost_custom_fragment,
workers => $workers,
wsgi_daemon_process => 'placement-api',
wsgi_process_display_name => $wsgi_process_display_name,

View File

@ -64,6 +64,7 @@ describe 'placement::wsgi::apache' do
:ssl_crl_path => '/etc/ssl/crl',
:ssl_crl => '/etc/ssl/certs/crl.crt',
:ssl_certs_dir => '/etc/ssl/certs',
:vhost_custom_fragment => 'Timeout 99',
:wsgi_process_display_name => 'custom',
:threads => 5,
:priority => '25',
@ -106,6 +107,7 @@ describe 'placement::wsgi::apache' do
:ssl_key => params[:ssl_key],
:threads => params[:threads],
:user => 'placement',
:vhost_custom_fragment => 'Timeout 99',
:workers => params[:workers],
:wsgi_daemon_process => 'placement-api',
:wsgi_process_display_name => params[:wsgi_process_display_name],