RHEL8: keeps installing php7.2.4
abctaylor opened this issue · 2 comments
abctaylor commented
Hello - after trying many hacks and tricks in previous issues submitted, this still appears to be very non-trivial to do, and the php_version
setting is essentially useless. How can a different version of PHP be installed? No matter what you enter for php_version
, it still chooses something different.
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6
- Module version: 8.2.0
How to reproduce (e.g Puppet code you use)
class { '::php::globals':
php_version => '8.2',
config_root => '/etc/php/8.2',
}->class { '::php':
manage_repos => false,
package_prefix => 'php82-php-',
settings => {
'PHP/max_execution_time' => '90',
'PHP/max_input_time' => '300',
'PHP/memory_limit' => '1G',
'PHP/post_max_size' => '1G',
'PHP/upload_max_filesize' => '10G',
'Date/date.timezone' => 'Europe/London',
},
}
What are you seeing
PHP 7.2.4 gets installed, no matter what.
What behaviour did you expect instead
PHP 8.2 gets installed
abctaylor commented
The issue is because the OS' default repo (e.g. rhel-8-for-x86_64-appstream-rpms
) takes preference, and this has an older RPM than Remi.