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 doc.wikimedia.org/ and 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 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'modules/profile/manifests/ci/php.pp', line 12
class profile::ci::php {
if debian::codename::eq('buster') {
apt::repository { 'wikimedia-php74':
uri => 'http://apt.wikimedia.org/wikimedia',
dist => "${::lsbdistcodename}-wikimedia",
components => 'component/php74',
}
apt::repository { 'icu67':
uri => 'http://apt.wikimedia.org/wikimedia',
dist => 'buster-wikimedia',
components => 'component/icu67',
}
}
$php_version = debian::codename() ? {
'buster' => '7.4',
'bullseye' => '7.4', # provided above by component/php74
default => fail("${module_name} not supported by ${debian::codename()}")
}
$php_prefix = "php${php_version}"
}
|