Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CAT-1283) - Enable forensic module #2442

Merged
merged 1 commit into from Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/default_mods.pp
Expand Up @@ -125,6 +125,7 @@
include apache::mod::negotiation
include apache::mod::setenvif
include apache::mod::auth_basic
include apache::mod::log_forensic

# filter is needed by mod_deflate
include apache::mod::filter
Expand Down
9 changes: 9 additions & 0 deletions manifests/mod/log_forensic.pp
@@ -0,0 +1,9 @@
# @summary
# Installs `mod_log_forensic`
#
# @see https://httpd.apache.org/docs/current/mod/mod_log_forensic.html for additional documentation.
#
class apache::mod::log_forensic {
include apache
apache::mod { 'log_forensic': }
}
16 changes: 16 additions & 0 deletions spec/classes/mod/log_forensic_spec.rb
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'apache::mod::log_forensic', type: :class do
['Debian 11', 'RedHat 8'].each do |os|
context "on a #{os} OS" do
include_examples os

it { is_expected.to contain_class('apache::params') }
it { is_expected.to contain_class('apache::mod::log_forensic') }
it { is_expected.to contain_apache__mod('log_forensic') }
it { is_expected.to contain_file('log_forensic.load').with_content(%r{LoadModule log_forensic_module}) }
end
end
end