Skip to content

Commit

Permalink
Merge pull request #2572 from puppetlabs/CAT-2100-add-debian-12-support
Browse files Browse the repository at this point in the history
(CAT-2100) Add Debian 12 support
  • Loading branch information
malikparvez authored Nov 19, 2024
2 parents d50585c + 19c0e9d commit 925cd89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11"
"11",
"12"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/mod_php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class { 'apache::mod::php': }
content => "<?php phpinfo(); ?>\\n",
}
MANIFEST

it 'succeeds in puppeting php' do
apply_manifest(pp, catch_failures: true)
end
Expand All @@ -36,7 +37,7 @@ class { 'apache::mod::php': }
describe file("#{apache_hash['mod_dir']}/php7.4.conf") do
it { is_expected.to contain 'DirectoryIndex index.php' }
end
elsif os[:family] == 'debian' && os[:release] =~ %r{^12\.}
elsif os[:family] == 'debian' && os[:release] =~ %r{^12}
describe file("#{apache_hash['mod_dir']}/php8.2.conf") do
it { is_expected.to contain 'DirectoryIndex index.php' }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mod/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

it {
expect(subject).to contain_file('php8.2.load').with(
content: "LoadModule php8_module /usr/lib/apache2/modules/libphp8.2.so\n",
content: "LoadModule php_module /usr/lib/apache2/modules/libphp8.2.so\n",
)
}
end
Expand Down

0 comments on commit 925cd89

Please sign in to comment.