Puppet Function: wmflib::debian_php_version

Defined in:
modules/wmflib/functions/debian_php_version.pp
Function type:
Puppet Language

Overview

wmflib::debian_php_version()Any

SPDX-License-Identifier: Apache-2.0 Return the correct PHP version based on the Debian release name.

Returns:

  • (Any)


3
4
5
6
7
8
9
10
11
# File 'modules/wmflib/functions/debian_php_version.pp', line 3

function wmflib::debian_php_version(){

    debian::codename() ? {
        'buster'   => '7.3',
        'bullseye' => '7.4',
        'bookworm' => '8.2',
        default    => fail('unsupported distro'),
    }
}