Do not use deprecated wsgi_script_source
app.wsgi script is deprecated for long in ironic in favor of ironic-api-wsgi script, the deprecated script is now removed in [1]. Let's use ironic-api-wsgi script as a wsgi_script_source path. [1] https://review.opendev.org/#/c/668515/ Change-Id: I08016ca7b82e6987a341ffb8e3c0e5bfc872e46f
This commit is contained in:
@@ -60,7 +60,7 @@ class ironic::params {
|
||||
$systemd_python_package = 'systemd-python'
|
||||
$ipxe_rom_dir = '/usr/share/ipxe'
|
||||
$ironic_wsgi_script_path = '/var/www/cgi-bin/ironic'
|
||||
$ironic_wsgi_script_source = "/usr/lib/python${$pyver3}/site-packages/ironic/api/app.wsgi"
|
||||
$ironic_wsgi_script_source = '/usr/bin/ironic-api-wsgi'
|
||||
$tftpd_package = 'tftp-server'
|
||||
$ipxe_package = 'ipxe-bootimgs'
|
||||
$syslinux_package = 'syslinux-tftpboot'
|
||||
@@ -88,7 +88,7 @@ class ironic::params {
|
||||
$systemd_python_package = 'python-systemd'
|
||||
$ipxe_rom_dir = '/usr/lib/ipxe'
|
||||
$ironic_wsgi_script_path = '/usr/lib/cgi-bin/ironic'
|
||||
$ironic_wsgi_script_source = "/usr/lib/python${$pyver3}/dist-packages/ironic/api/app.wsgi"
|
||||
$ironic_wsgi_script_source = '/usr/bin/ironic-api-wsgi'
|
||||
$tftpd_package = 'tftpd'
|
||||
$ipxe_package = 'ipxe'
|
||||
$syslinux_package = 'syslinux-common'
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
app.wsgi script in ironic is deprecated from long in
|
||||
favor of ironic-api-wsgi script, wsgi_script_source
|
||||
default is changed to use ironic-api-wsgi instead of
|
||||
app.wsgi.
|
||||
@@ -94,14 +94,14 @@ describe 'ironic::wsgi::apache' do
|
||||
:httpd_service_name => 'apache2',
|
||||
:httpd_ports_file => '/etc/apache2/ports.conf',
|
||||
:wsgi_script_path => '/usr/lib/cgi-bin/ironic',
|
||||
:wsgi_script_source => '/usr/lib/python3/dist-packages/ironic/api/app.wsgi',
|
||||
:wsgi_script_source => '/usr/bin/ironic-api-wsgi',
|
||||
}
|
||||
when 'RedHat'
|
||||
{
|
||||
:httpd_service_name => 'httpd',
|
||||
:httpd_ports_file => '/etc/httpd/conf/ports.conf',
|
||||
:wsgi_script_path => '/var/www/cgi-bin/ironic',
|
||||
:wsgi_script_source => '/usr/lib/python2.7/site-packages/ironic/api/app.wsgi',
|
||||
:wsgi_script_source => '/usr/bin/ironic-api-wsgi',
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user