Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Debian 12 (Bookworm) #690

Closed
drebs opened this issue Jun 28, 2023 · 3 comments
Closed

Add support for Debian 12 (Bookworm) #690

drebs opened this issue Jun 28, 2023 · 3 comments

Comments

@drebs
Copy link

drebs commented Jun 28, 2023

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!

@slater0013
Copy link

slater0013 commented Jun 30, 2023

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

@drebs
Copy link
Author

drebs commented Jul 5, 2023

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

php::globals::php_version: '8.2'

@poloz-lab
Copy link

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

@smortex smortex closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants