Skip to content

Commit

Permalink
ensure bcmath and mbstring are installable on ol7
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 4, 2023
1 parent 50aafb3 commit f35150f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check warning on line 242 in manifests/web.pp

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

indentation of => is not properly aligned (expected in column 18, but found it in column 19) (check: arrow_alignment)
before => Package[$zabbix_web_package],

Check warning on line 243 in manifests/web.pp

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

indentation of => is not properly aligned (expected in column 18, but found it in column 19) (check: arrow_alignment)
}
}

if ($facts['os']['release']['major'] == '7' and versioncmp($zabbix_version, '5.0') >= 0) {
package { "zabbix-web-${db}-scl":
ensure => $zabbix_package_state,
Expand Down

0 comments on commit f35150f

Please sign in to comment.