Skip to content

Commit

Permalink
(CAT-1283) - Enable forensic module
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Aug 21, 2023
1 parent c97699b commit 0f06f1b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/default_mods.pp
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f06f1b

Please sign in to comment.