From f35150fa67bd5ac6748aafd6a56cd842daa308e1 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 4 Oct 2023 10:35:18 +0200 Subject: [PATCH] ensure bcmath and mbstring are installable on ol7 --- manifests/web.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/web.pp b/manifests/web.pp index bd6ff23f2..cf871faab 100644 --- a/manifests/web.pp +++ b/manifests/web.pp @@ -235,6 +235,15 @@ } 'RedHat': { $zabbix_web_package = 'zabbix-web' + + # Oracle Linux 7 has some PHP dependencies (bcmath, mbstring) in a special repository + if ($facts['os']['name'] == 'OracleLinux' and $facts['os']['release']['major'] == '7' and $zabbix_version == '4.0') { + package { 'oracle-php-release-el7': + ensure => $zabbix_package_state, + before => Package[$zabbix_web_package], + } + } + if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) { package { "zabbix-web-${db}-scl": ensure => $zabbix_package_state,