puppet-php icon indicating copy to clipboard operation
puppet-php copied to clipboard

Add support for Debian 12 (Bookworm)

Open drebs opened this issue 1 year ago • 2 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: (not applicable)
  • Ruby: (not applicable)
  • Distribution: Debian 12 Bookworm
  • Module version: v8.2.0 and current master

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!

drebs avatar Jun 28 '23 19:06 drebs

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

slater0013 avatar Jun 30 '23 14:06 slater0013

To workaround, add the following to the Bookworm node's hiera data:

php::globals::php_version: '8.2'

drebs avatar Jul 05 '23 00:07 drebs

It seems resolved with #687 in the v10.2.0 release

poloz-lab avatar Jun 21 '24 09:06 poloz-lab