Add customization for wsgi process display name
Change-Id: Iaed8d7477b3917f401ae2a09951687c568b7a82c Related-Bug: #1626550
This commit is contained in:
parent
e323a3b512
commit
849f8bf944
@ -53,6 +53,10 @@
|
||||
# (optional) The number of threads for the vhost.
|
||||
# Defaults to $::os_workers
|
||||
#
|
||||
# [*wsgi_process_display_name*]
|
||||
# (optional) Name of the WSGI process display-name.
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*ssl_cert*]
|
||||
# [*ssl_key*]
|
||||
# [*ssl_chain*]
|
||||
@ -74,21 +78,22 @@
|
||||
# class { 'panko::wsgi::apache': }
|
||||
#
|
||||
class panko::wsgi::apache (
|
||||
$servername = $::fqdn,
|
||||
$port = 8779,
|
||||
$bind_host = undef,
|
||||
$path = '/',
|
||||
$ssl = true,
|
||||
$workers = 1,
|
||||
$ssl_cert = undef,
|
||||
$ssl_key = undef,
|
||||
$ssl_chain = undef,
|
||||
$ssl_ca = undef,
|
||||
$ssl_crl_path = undef,
|
||||
$ssl_crl = undef,
|
||||
$ssl_certs_dir = undef,
|
||||
$threads = $::os_workers,
|
||||
$priority = '10',
|
||||
$servername = $::fqdn,
|
||||
$port = 8779,
|
||||
$bind_host = undef,
|
||||
$path = '/',
|
||||
$ssl = true,
|
||||
$workers = 1,
|
||||
$ssl_cert = undef,
|
||||
$ssl_key = undef,
|
||||
$ssl_chain = undef,
|
||||
$ssl_ca = undef,
|
||||
$ssl_crl_path = undef,
|
||||
$ssl_crl = undef,
|
||||
$ssl_certs_dir = undef,
|
||||
$wsgi_process_display_name = undef,
|
||||
$threads = $::os_workers,
|
||||
$priority = '10',
|
||||
) {
|
||||
|
||||
include ::panko::deps
|
||||
@ -100,27 +105,28 @@ class panko::wsgi::apache (
|
||||
}
|
||||
|
||||
::openstacklib::wsgi::apache { 'panko_wsgi':
|
||||
bind_host => $bind_host,
|
||||
bind_port => $port,
|
||||
group => 'panko',
|
||||
path => $path,
|
||||
priority => $priority,
|
||||
servername => $servername,
|
||||
ssl => $ssl,
|
||||
ssl_ca => $ssl_ca,
|
||||
ssl_cert => $ssl_cert,
|
||||
ssl_certs_dir => $ssl_certs_dir,
|
||||
ssl_chain => $ssl_chain,
|
||||
ssl_crl => $ssl_crl,
|
||||
ssl_crl_path => $ssl_crl_path,
|
||||
ssl_key => $ssl_key,
|
||||
threads => $threads,
|
||||
user => 'panko',
|
||||
workers => $workers,
|
||||
wsgi_daemon_process => 'panko',
|
||||
wsgi_process_group => 'panko',
|
||||
wsgi_script_dir => $::panko::params::panko_wsgi_script_path,
|
||||
wsgi_script_file => 'app',
|
||||
wsgi_script_source => $::panko::params::panko_wsgi_script_source,
|
||||
bind_host => $bind_host,
|
||||
bind_port => $port,
|
||||
group => 'panko',
|
||||
path => $path,
|
||||
priority => $priority,
|
||||
servername => $servername,
|
||||
ssl => $ssl,
|
||||
ssl_ca => $ssl_ca,
|
||||
ssl_cert => $ssl_cert,
|
||||
ssl_certs_dir => $ssl_certs_dir,
|
||||
ssl_chain => $ssl_chain,
|
||||
ssl_crl => $ssl_crl,
|
||||
ssl_crl_path => $ssl_crl_path,
|
||||
ssl_key => $ssl_key,
|
||||
threads => $threads,
|
||||
user => 'panko',
|
||||
workers => $workers,
|
||||
wsgi_daemon_process => 'panko',
|
||||
wsgi_process_display_name => $wsgi_process_display_name,
|
||||
wsgi_process_group => 'panko',
|
||||
wsgi_script_dir => $::panko::params::panko_wsgi_script_path,
|
||||
wsgi_script_file => 'app',
|
||||
wsgi_script_source => $::panko::params::panko_wsgi_script_source,
|
||||
}
|
||||
}
|
||||
|
@ -37,6 +37,13 @@ describe 'panko::wsgi::apache' do
|
||||
'docroot_group' => 'panko',
|
||||
'ssl' => 'true',
|
||||
'wsgi_daemon_process' => 'panko',
|
||||
'wsgi_daemon_process_options' => {
|
||||
'user' => 'panko',
|
||||
'group' => 'panko',
|
||||
'processes' => 1,
|
||||
'threads' => '4',
|
||||
'display-name' => 'panko_wsgi',
|
||||
},
|
||||
'wsgi_process_group' => 'panko',
|
||||
'wsgi_script_aliases' => { '/' => "#{platform_params[:wsgi_script_path]}/app" },
|
||||
'require' => 'File[panko_wsgi]'
|
||||
@ -47,11 +54,12 @@ describe 'panko::wsgi::apache' do
|
||||
describe 'when overriding parameters using different ports' do
|
||||
let :params do
|
||||
{
|
||||
:servername => 'dummy.host',
|
||||
:bind_host => '10.42.51.1',
|
||||
:port => 12345,
|
||||
:ssl => false,
|
||||
:workers => 8,
|
||||
:servername => 'dummy.host',
|
||||
:bind_host => '10.42.51.1',
|
||||
:port => 12345,
|
||||
:ssl => false,
|
||||
:wsgi_process_display_name => 'panko',
|
||||
:workers => 8,
|
||||
}
|
||||
end
|
||||
|
||||
@ -64,6 +72,13 @@ describe 'panko::wsgi::apache' do
|
||||
'docroot_group' => 'panko',
|
||||
'ssl' => 'false',
|
||||
'wsgi_daemon_process' => 'panko',
|
||||
'wsgi_daemon_process_options' => {
|
||||
'user' => 'panko',
|
||||
'group' => 'panko',
|
||||
'processes' => '8',
|
||||
'threads' => '4',
|
||||
'display-name' => 'panko',
|
||||
},
|
||||
'wsgi_process_group' => 'panko',
|
||||
'wsgi_script_aliases' => { '/' => "#{platform_params[:wsgi_script_path]}/app" },
|
||||
'require' => 'File[panko_wsgi]'
|
||||
|
Loading…
Reference in New Issue
Block a user