Expect Python3.6 instead of Python2.7 on CentOS8 and Fedora
Change-Id: Ic62b0684deea2d9bc3135ee14d3d5d0b4d256b60
This commit is contained in:
@@ -95,10 +95,24 @@ describe 'watcher::wsgi::apache' do
|
||||
:wsgi_script_source => '/usr/lib/python3/dist-packages/watcher/api/app.wsgi'
|
||||
}
|
||||
when 'RedHat'
|
||||
{
|
||||
:wsgi_script_path => '/var/www/cgi-bin/watcher',
|
||||
:wsgi_script_source => '/usr/lib/python2.7/site-packages/watcher/api/app.wsgi'
|
||||
}
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{
|
||||
:wsgi_script_path => '/var/www/cgi-bin/watcher',
|
||||
:wsgi_script_source => '/usr/lib/python3.6/site-packages/watcher/api/app.wsgi'
|
||||
}
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{
|
||||
:wsgi_script_path => '/var/www/cgi-bin/watcher',
|
||||
:wsgi_script_source => '/usr/lib/python3.6/site-packages/watcher/api/app.wsgi'
|
||||
}
|
||||
else
|
||||
{
|
||||
:wsgi_script_path => '/var/www/cgi-bin/watcher',
|
||||
:wsgi_script_source => '/usr/lib/python2.7/site-packages/watcher/api/app.wsgi'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user