# HG changeset patch # User IBBoard # Date 1665236113 -3600 # Node ID b185498177ef095f2ca7bab50b0fd195e85c7845 # Parent de6f43c2df6693dce55f8b4676521c3aaf7757d6 Backed out changeset 6421c6f77eb8 - Add SOAP Something got lost in the history, despite supposedly being linear diff -r de6f43c2df66 -r b185498177ef manifests/templates.pp --- a/manifests/templates.pp Sat Oct 08 12:19:23 2022 +0100 +++ b/manifests/templates.pp Sat Oct 08 14:35:13 2022 +0100 @@ -420,6 +420,9 @@ if $operatingsystem == 'CentOS' { $php_suffix = '' + $variant_prefix = '' + $extra_prefix = 'pecl-' + $extra_extras = { 'process' => {} } if versioncmp($operatingsystemrelease, '8') >= 0 { yumrepo { 'remirepo-safe': mirrorlist => 'http://cdn.remirepo.net/enterprise/$releasever/safe/$basearch/mirror', @@ -468,13 +471,29 @@ } elsif $operatingsystem == 'Ubuntu' { $php_suffix = '' + $variant_prefix = 'php-' + $extra_prefix = '' + $extra_extras = {} } #Configure the PHP version to use class { 'website::php': suffix => $php_suffix, module => ($operatingsystem == 'CentOS' and versioncmp($operatingsystemrelease, '8') >= 0) ? { true => 'remi-7.4', default => undef }, - extras => [ 'process', 'intl', 'pecl-imagick', 'bcmath', 'pecl-zip', 'json', 'pecl-apcu', 'gmp', 'enchant', 'soap' ], + extras => { + 'intl' => {}, + "${extra_prefix}imagick" => { + package_prefix => $variant_prefix + }, + 'bcmath' => {}, + "${extra_prefix}zip" => {}, + 'json' => {}, + "${extra_prefix}apcu" => { + package_prefix => $variant_prefix + }, + 'gmp' => {}, + 'enchant' => {} + } + $extra_extras, } #Setup MySQL, using (private) templates to make sure that we set non-std passwords and a default user