puppet-php
puppet-php copied to clipboard
Add support for Debian 12 (Bookworm)
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: (not applicable)
- Ruby: (not applicable)
- Distribution: Debian 12 Bookworm
- Module version:
v8.2.0
and currentmaster
How to reproduce (e.g Puppet code you use)
On a Debian 12 (Bookworm):
sudo apt install -y puppet git
git clone https://github.com/voxpupuli/puppet-php.git php
git clone https://github.com/puppetlabs/puppetlabs-stdlib.git stdlib
puppet apply --modulepath ./ -e 'include php'
What are you seeing
Error: Evaluation Error: Error while evaluating a Function Call, Unsupported Debian release: 12 (file: /tmp/php/manifests/globals.pp, line: 38, column: 20) on node localhost
What behaviour did you expect instead
Puppet should install PHP 8.2.
Output log
See above in the "What are you seeing" section.
Any additional information you'd like to impart
No, just thank you for developing this module!
Hello, same issue here !
Could we just add Debian 12 support manually in
/etc/puppetlabs/code/environments/production/modules/php/manifests/globals.pp
'Debian' => $facts['os']['release']['major'] ? {
'10' => '7.3',
'11' => '7.4',
'12' => '8.2',
default => fail("Unsupported Debian release: ${fact('os.release.major')}"),
},
GS
To workaround, add the following to the Bookworm node's hiera data:
php::globals::php_version: '8.2'
It seems resolved with #687 in the v10.2.0 release