From 429dcdb626cdc89d5e9fd0022a44a53ae86a30c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20D=C3=B6hring?= Date: Fri, 24 Jan 2020 13:43:25 +0100 Subject: [PATCH] Fix proxy_html Module to work on Debian 10 --- manifests/mod/proxy_html.pp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/manifests/mod/proxy_html.pp b/manifests/mod/proxy_html.pp index 2acffef6d4..730940a4f5 100644 --- a/manifests/mod/proxy_html.pp +++ b/manifests/mod/proxy_html.pp @@ -19,10 +19,22 @@ 'i686' => 'i386', default => $::hardwaremodel, } - $loadfiles = $::apache::params::distrelease ? { - '6' => ['/usr/lib/libxml2.so.2'], - '10' => ['/usr/lib/libxml2.so.2'], - default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"], + case $::operatingsystem { + 'Ubuntu': { + $loadfiles = $::apache::params::distrelease ? { + '10' => ['/usr/lib/libxml2.so.2'], + default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"], + } + } + 'Debian': { + $loadfiles = $::apache::params::distrelease ? { + '6' => ['/usr/lib/libxml2.so.2'], + default => ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"], + } + } + default: { + $loadfiles = ["/usr/lib/${gnu_path}-linux-gnu/libxml2.so.2"] + } } if versioncmp($::apache::apache_version, '2.4') >= 0 { ::apache::mod { 'xml2enc': }