Debian path to app.wsgi

Debian isn't using /usr/lib/python2.7. First, its using Python 3,
and second, the app.wsgi is in /usr/share/watcher-common.

Change-Id: Ib93cbb8362625634398b9d92c56b251e96450ed6
This commit is contained in:
Thomas Goirand
2018-05-07 13:38:11 +02:00
parent f9c743f7bd
commit 41e1ab5dd2

View File

@@ -32,7 +32,11 @@ class watcher::params {
$decision_engine_package_name = 'watcher-decision-engine'
$decision_engine_service_name = 'watcher-decision-engine'
$client_package_name = "python${pyvers}-watcherclient"
$watcher_wsgi_script_source = '/usr/lib/python2.7/dist-packages/watcher/api/app.wsgi'
if ($::os_package_type == 'debian') {
$watcher_wsgi_script_source = '/usr/share/watcher-common/app.wsgi'
} else {
$watcher_wsgi_script_source = '/usr/lib/python2.7/dist-packages/watcher/api/app.wsgi'
}
$watcher_wsgi_script_path = '/usr/lib/cgi-bin/watcher'
}
default: {