diff --git a/manifests/mod/apreq2.pp b/manifests/mod/apreq2.pp new file mode 100644 index 0000000000..51f1a9f986 --- /dev/null +++ b/manifests/mod/apreq2.pp @@ -0,0 +1,11 @@ +# @summary +# Installs `mod_apreq2`. +# +# @see http://httpd.apache.org/apreq/docs/libapreq2/group__mod__apreq2.html for additional documentation. +# +# @note Unsupported platforms: CentOS: all; Debian: 8; OracleLinux: all; RedHat: all; Scientific: all; SLES: all; Ubuntu: all +class apache::mod::apreq2 { + ::apache::mod { 'apreq2': + id => 'apreq_module', + } +} diff --git a/manifests/params.pp b/manifests/params.pp index 7a0f16caa0..f860322eaa 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -389,6 +389,7 @@ default => '7.2', # Ubuntu Bionic, Cosmic and Disco } $mod_packages = { + 'apreq2' => 'libapache2-mod-apreq2', 'auth_cas' => 'libapache2-mod-auth-cas', 'auth_kerb' => 'libapache2-mod-auth-kerb', 'auth_openidc' => 'libapache2-mod-auth-openidc', diff --git a/spec/acceptance/mod_apreq2_spec.rb b/spec/acceptance/mod_apreq2_spec.rb new file mode 100644 index 0000000000..a07a3b994f --- /dev/null +++ b/spec/acceptance/mod_apreq2_spec.rb @@ -0,0 +1,13 @@ +require 'spec_helper_acceptance' +apache_hash = apache_settings_hash + +describe 'apache::mod::apreq2', if: mod_supported_on_platform?('apache::mod::apreq2') do + pp = <<-MANIFEST + class { 'apache' : } + class { 'apache::mod::apreq2': } + MANIFEST + + it 'succeeds in installing the mod_authnz_apreq2 module' do + apply_manifest(pp, catch_failures: true) + end +end \ No newline at end of file