Puppet Class: zabbix::php

Defined in:
manifests/php.pp

Summary

Install a version of PHP supported by Zabbix on system where the default one is too old

Overview

Parameters:

  • manage_php (Optional[String]) (defaults to: undef) —

    If set, version of PHP to install on systems where default one is not supported by Zabbix (actually only EL8).



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/php.pp', line 6

class zabbix::php (
  Optional[String] $manage_php = undef
) {
  if $manage_php {
    case $facts['os']['family'] {
      'RedHat': {
        case $facts['os']['release']['major'] {
          '8': {
            package { 'php':
              ensure   => $manage_php,
              provider => 'dnfmodule',
            }
          }
          default: {
          }
        }
      }
      default: {
      }
    }
  }
}