From dc2cc876f53fe0e05c4efa9dc129bf97e09d1690 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 4 May 2018 10:18:52 +0200 Subject: [PATCH] Debian is using Python 3: Fix path to wsgi/app.py Use /usr/lib/python3 instead of /usr/lib/python2.7 Change-Id: I79c138bb9baeefc9ed88acdae46c8699b4614884 --- manifests/params.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 6afe002..4eaac26 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -7,8 +7,10 @@ class zaqar::params { if ($::os_package_type == 'debian') { $pyvers = '3' + $pyver3 = '3' } else { $pyvers = '' + $pyver3 = '2.7' } $client_package_name = "python${pyvers}-zaqarclient" @@ -24,7 +26,7 @@ class zaqar::params { 'Debian': { $package_name = 'zaqar-server' $service_name = 'zaqar-server' - $zaqar_wsgi_script_source = '/usr/lib/python2.7/dist-packages/zaqar/transport/wsgi/app.py' + $zaqar_wsgi_script_source = "/usr/lib/python${pyver3}/dist-packages/zaqar/transport/wsgi/app.py" $zaqar_wsgi_script_path = '/usr/lib/cgi-bin/zaqar' } default: {