-
Notifications
You must be signed in to change notification settings - Fork 1.1k
(feat) Add support for apreq2 MOD on Debian 9, 10 #2085
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
Conversation
apache::mod::apreq2 is a classthat may have no external impact to Forge modules. This module is declared in 174 of 575 indexed public
|
|
Thanks for the new feature to add support for the This change looks good, but it would need an acceptance test to verify that the module is indeed being loaded. Let me know if I can be of any help in that regard |
|
I used the following Manifest on a Debian 10 (buster) machine: This installs the Apache and a apreq2.load File is created with the following content
The Apache can't start with this load File since the module name is wrong. You will get the following error-message:
If I install the apache and the libapache2-mod-apreq2 package manually it creates a apreq2.load File with the following content and the apache starts
I just started to work with puppet so I would appreciate your help regarding a acceptance test. |
|
Thanks for the detailed explanation @TigerKriika Firstly, regarding the acceptance tests, I would just keep it quite simple to begin with. If you create a new file under require 'spec_helper_acceptance'
apache_hash = apache_settings_hash
describe '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
endThis will reproduce the current issue you are encountering. You'll need to implement a few more steps to add support for this MOD. The part missing is the package installation of the necessary MODs for the OS for this to be successful. The way this is typically done is by this not so great method of updating the Typically, the Apache MOD support is going to be difficult to maintain across all Linux distros and versions. You may want to have a read at this blog post I made a while back. It's also documented here So I would:
|
This commit ensures that the required package for the `apreq2` MOD is installed on Debian 9 and 10. Also adds a basic acceptance test for this MOD on those platforms.
|
@TigerKriika I've created a PR to your fork with the above changes: TigerKirika#1 If you want to expand on the basic acceptance test and/or increase the amount of platforms the MOD is supported on, feel free to do so. |
…cements (feat) Add package deps and tests for mod_apreq2 on Debian 9, 10
|
@sanfrancrisko |
The LoadModule ID is currently wrong created.
The module creates the .load-File with
instead of
http://httpd.apache.org/apreq/docs/libapreq2/group__mod__apreq2.html