Skip to content

Commit 2d3d81e

Browse files
Merge pull request #2085 from TigerKriika/master
(feat) Add support for apreq2 MOD on Debian 9, 10
2 parents afbaf19 + 0acfc1c commit 2d3d81e

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

manifests/mod/apreq2.pp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @summary
2+
# Installs `mod_apreq2`.
3+
#
4+
# @see http://httpd.apache.org/apreq/docs/libapreq2/group__mod__apreq2.html for additional documentation.
5+
#
6+
# @note Unsupported platforms: CentOS: all; Debian: 8; OracleLinux: all; RedHat: all; Scientific: all; SLES: all; Ubuntu: all
7+
class apache::mod::apreq2 {
8+
::apache::mod { 'apreq2':
9+
id => 'apreq_module',
10+
}
11+
}

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@
389389
default => '7.2', # Ubuntu Bionic, Cosmic and Disco
390390
}
391391
$mod_packages = {
392+
'apreq2' => 'libapache2-mod-apreq2',
392393
'auth_cas' => 'libapache2-mod-auth-cas',
393394
'auth_kerb' => 'libapache2-mod-auth-kerb',
394395
'auth_openidc' => 'libapache2-mod-auth-openidc',

spec/acceptance/mod_apreq2_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'spec_helper_acceptance'
2+
apache_hash = apache_settings_hash
3+
4+
describe 'apache::mod::apreq2', if: mod_supported_on_platform?('apache::mod::apreq2') do
5+
pp = <<-MANIFEST
6+
class { 'apache' : }
7+
class { 'apache::mod::apreq2': }
8+
MANIFEST
9+
10+
it 'succeeds in installing the mod_authnz_apreq2 module' do
11+
apply_manifest(pp, catch_failures: true)
12+
end
13+
end

0 commit comments

Comments
 (0)