Expose vhost_custom_fragment

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

Change-Id: I1425b400b2bc471295c448e3ec9e5035b00ad43a
Signed-off-by: Luke Short <ekultails@gmail.com>
(cherry picked from commit f7e1857771)
(cherry picked from commit 911a396c08)
This commit is contained in:
Luke Short 2020-08-13 13:46:16 -04:00
parent b4623024bc
commit 7b0e3c78c0
2 changed files with 10 additions and 1 deletions

View File

@ -90,6 +90,11 @@
# { python-path => '/my/python/virtualenv' } # { python-path => '/my/python/virtualenv' }
# Defaults to {} # Defaults to {}
# #
# [*vhost_custom_fragment*]
# (optional) Passes a string of custom configuration
# directives to be placed at the end of the vhost configuration.
# Defaults to undef.
#
# == Dependencies # == Dependencies
# #
# requires Class['apache'] & Class['gnocchi'] # requires Class['apache'] & Class['gnocchi']
@ -121,6 +126,7 @@ class gnocchi::wsgi::apache (
$access_log_format = false, $access_log_format = false,
$error_log_file = undef, $error_log_file = undef,
$custom_wsgi_process_options = {}, $custom_wsgi_process_options = {},
$vhost_custom_fragment = undef,
) { ) {
include ::gnocchi::deps include ::gnocchi::deps
@ -148,6 +154,7 @@ class gnocchi::wsgi::apache (
ssl_key => $ssl_key, ssl_key => $ssl_key,
threads => $threads, threads => $threads,
user => 'gnocchi', user => 'gnocchi',
vhost_custom_fragment => $vhost_custom_fragment,
workers => $workers, workers => $workers,
wsgi_daemon_process => 'gnocchi', wsgi_daemon_process => 'gnocchi',
wsgi_process_display_name => $wsgi_process_display_name, wsgi_process_display_name => $wsgi_process_display_name,

View File

@ -43,7 +43,8 @@ describe 'gnocchi::wsgi::apache' do
}, },
:access_log_file => '/var/log/httpd/access_log', :access_log_file => '/var/log/httpd/access_log',
:access_log_format => 'some format', :access_log_format => 'some format',
:error_log_file => '/var/log/httpd/error_log' :error_log_file => '/var/log/httpd/error_log',
:vhost_custom_fragment => 'Timeout 99'
} }
end end
@ -60,6 +61,7 @@ describe 'gnocchi::wsgi::apache' do
:ssl => false, :ssl => false,
:threads => 2, :threads => 2,
:user => 'gnocchi', :user => 'gnocchi',
:vhost_custom_fragment => 'Timeout 99',
:workers => 8, :workers => 8,
:wsgi_daemon_process => 'gnocchi', :wsgi_daemon_process => 'gnocchi',
:wsgi_process_display_name => 'gnocchi', :wsgi_process_display_name => 'gnocchi',