Correct wsgi_daemon_process_options key
'owner' is not a valid option for the WSGIDaemonProcess directive. The correct option is 'user' [1]. Trying to set 'owner' causes the service to be unable to start. This patch corrects that option name. [1] https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess Change-Id: I907fbcb48db823ea8f5caca4496efaaa456ef69c
This commit is contained in:
@@ -170,7 +170,7 @@ define openstacklib::wsgi::apache (
|
|||||||
}
|
}
|
||||||
|
|
||||||
$wsgi_daemon_process_options = {
|
$wsgi_daemon_process_options = {
|
||||||
owner => $user,
|
user => $user,
|
||||||
group => $group,
|
group => $group,
|
||||||
processes => $workers,
|
processes => $workers,
|
||||||
threads => $threads,
|
threads => $threads,
|
||||||
|
@@ -75,6 +75,12 @@ describe 'openstacklib::wsgi::apache' do
|
|||||||
'wsgi_daemon_process' => 'keystone_wsgi',
|
'wsgi_daemon_process' => 'keystone_wsgi',
|
||||||
'wsgi_process_group' => 'keystone_wsgi',
|
'wsgi_process_group' => 'keystone_wsgi',
|
||||||
'wsgi_script_aliases' => { '/' => "/var/www/cgi-bin/keystone/main" },
|
'wsgi_script_aliases' => { '/' => "/var/www/cgi-bin/keystone/main" },
|
||||||
|
'wsgi_daemon_process_options' => {
|
||||||
|
'user' => 'keystone',
|
||||||
|
'group' => 'keystone',
|
||||||
|
'processes' => 1,
|
||||||
|
'threads' => global_facts[:processorcount],
|
||||||
|
},
|
||||||
'require' => 'File[keystone_wsgi]'
|
'require' => 'File[keystone_wsgi]'
|
||||||
)}
|
)}
|
||||||
it { is_expected.to contain_file("#{platform_parameters[:httpd_ports_file]}") }
|
it { is_expected.to contain_file("#{platform_parameters[:httpd_ports_file]}") }
|
||||||
|
Reference in New Issue
Block a user