Skip to content

Commit 4ae8c68

Browse files
authored
Merge pull request #2442 from puppetlabs/CAT-1283-enable-forensic-log-module
(CAT-1283) - Enable forensic module
2 parents c97699b + 0f06f1b commit 4ae8c68

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

manifests/default_mods.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
include apache::mod::negotiation
126126
include apache::mod::setenvif
127127
include apache::mod::auth_basic
128+
include apache::mod::log_forensic
128129

129130
# filter is needed by mod_deflate
130131
include apache::mod::filter

manifests/mod/log_forensic.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @summary
2+
# Installs `mod_log_forensic`
3+
#
4+
# @see https://httpd.apache.org/docs/current/mod/mod_log_forensic.html for additional documentation.
5+
#
6+
class apache::mod::log_forensic {
7+
include apache
8+
apache::mod { 'log_forensic': }
9+
}

spec/classes/mod/log_forensic_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'apache::mod::log_forensic', type: :class do
6+
['Debian 11', 'RedHat 8'].each do |os|
7+
context "on a #{os} OS" do
8+
include_examples os
9+
10+
it { is_expected.to contain_class('apache::params') }
11+
it { is_expected.to contain_class('apache::mod::log_forensic') }
12+
it { is_expected.to contain_apache__mod('log_forensic') }
13+
it { is_expected.to contain_file('log_forensic.load').with_content(%r{LoadModule log_forensic_module}) }
14+
end
15+
end
16+
end

0 commit comments

Comments
 (0)