Browse Source

Expose vhost_custom_fragment

It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Nova API and metadata services.

Change-Id: Ifcc1f2c882f7b03ced18f48b54138792a41c3329
Signed-off-by: Luke Short <ekultails@gmail.com>
changes/91/745691/2
Luke Short 12 months ago
parent
commit
7ef245ef7d
  1. 7
      manifests/wsgi/apache_api.pp
  2. 7
      manifests/wsgi/apache_metadata.pp
  3. 2
      spec/classes/nova_wsgi_apache_api_spec.rb

7
manifests/wsgi/apache_api.pp

@ -90,6 +90,11 @@
# { python-path => '/my/python/virtualenv' }
# 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
#
# requires Class['apache'] & Class['nova'] & Class['nova::api']
@ -121,6 +126,7 @@ class nova::wsgi::apache_api (
$access_log_format = false,
$error_log_file = undef,
$custom_wsgi_process_options = {},
$vhost_custom_fragment = undef,
) {
include nova::params
@ -151,6 +157,7 @@ class nova::wsgi::apache_api (
ssl_key => $ssl_key,
threads => $threads,
user => 'nova',
vhost_custom_fragment => $vhost_custom_fragment,
workers => $workers,
wsgi_daemon_process => 'nova-api',
wsgi_process_display_name => $wsgi_process_display_name,

7
manifests/wsgi/apache_metadata.pp

@ -76,6 +76,11 @@
# { python-path => '/my/python/virtualenv' }
# 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
#
# requires Class['apache'] & Class['nova'] & Class['nova::metadata']
@ -108,6 +113,7 @@ class nova::wsgi::apache_metadata (
$access_log_format = false,
$error_log_file = undef,
$custom_wsgi_process_options = {},
$vhost_custom_fragment = undef,
) {
include nova::params
@ -146,6 +152,7 @@ class nova::wsgi::apache_metadata (
ssl_key => $ssl_key,
threads => $threads,
user => 'nova',
vhost_custom_fragment => $vhost_custom_fragment,
workers => $workers,
wsgi_daemon_process => 'nova-metadata',
wsgi_process_display_name => $wsgi_process_display_name,

2
spec/classes/nova_wsgi_apache_api_spec.rb

@ -55,6 +55,7 @@ describe 'nova::wsgi::apache_api' do
:bind_host => '10.42.51.1',
:api_port => 12345,
:ssl => false,
:vhost_custom_fragment => 'Timeout 99',
:wsgi_process_display_name => 'nova-api',
:workers => 37,
:custom_wsgi_process_options => {
@ -79,6 +80,7 @@ describe 'nova::wsgi::apache_api' do
:ssl => false,
:threads => 1,
:user => 'nova',
:vhost_custom_fragment => 'Timeout 99',
:workers => 37,
:wsgi_daemon_process => 'nova-api',
:wsgi_process_display_name => 'nova-api',

Loading…
Cancel
Save