Puppet Class: profile::ci::php

Defined in:
modules/profile/manifests/ci/php.pp

Overview

SPDX-License-Identifier: Apache-2.0

Control the PHP version used by integration/docroot which is shared between https://doc.wikimedia.org/ and https://integration.wikimedia.org/

Example usage:

include profile::ci::php

$php_prefix = profile::ci::php::php_prefix   --> 'php7.4'
$php_version = profile::ci::php::php_version --> '7.4'


12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/ci/php.pp', line 12

class profile::ci::php {
    $php_version = debian::codename() ? {
        'bullseye' => '7.4',  # provided above by component/php74
        'trixie'   => '8.4',
        default    => fail("${module_name} not supported by ${debian::codename()}")
    }
    $php_prefix = "php${php_version}"
}