Skip to content

Commit e06785a

Browse files
authored
Merge pull request #2099 from puppetlabs/master
(maint) - Fix to move changes from Master into Main
2 parents bd79429 + 0c19106 commit e06785a

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
@@ -396,6 +396,7 @@
396396
default => '7.2', # Ubuntu Bionic, Cosmic and Disco
397397
}
398398
$mod_packages = {
399+
'apreq2' => 'libapache2-mod-apreq2',
399400
'auth_cas' => 'libapache2-mod-auth-cas',
400401
'auth_kerb' => 'libapache2-mod-auth-kerb',
401402
'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)