Skip to content

Commit 037a6c5

Browse files
authored
Merge pull request #2380 from Q-Storm/2379
Adding mod_version module to be activated by default
2 parents f3b2160 + 4760f7e commit 037a6c5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

manifests/default_mods.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
include apache::mod::rewrite
5454
include apache::mod::speling
5555
include apache::mod::suexec
56+
include apache::mod::version
5657
include apache::mod::vhost_alias
5758
::apache::mod { 'auth_digest': }
5859
::apache::mod { 'authn_anon': }
@@ -70,15 +71,16 @@
7071
include apache::mod::authn_core
7172
include apache::mod::cache
7273
include apache::mod::disk_cache
74+
include apache::mod::filter
7375
include apache::mod::headers
7476
include apache::mod::info
7577
include apache::mod::mime_magic
7678
include apache::mod::reqtimeout
7779
include apache::mod::rewrite
80+
include apache::mod::speling
7881
include apache::mod::userdir
82+
include apache::mod::version
7983
include apache::mod::vhost_alias
80-
include apache::mod::speling
81-
include apache::mod::filter
8284

8385
::apache::mod { 'asis': }
8486
::apache::mod { 'auth_digest': }

manifests/mod/version.pp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# @summary
2+
# Installs `mod_version`.
3+
#
4+
# @see https://httpd.apache.org/docs/current/mod/mod_version.html for additional documentation.
5+
#
6+
class apache::mod::version {
7+
if $facts['os']['family'] == 'debian' {
8+
warning("${module_name}: module version_module is built-in and can't be loaded")
9+
} else {
10+
::apache::mod { 'version': }
11+
}
12+
}

0 commit comments

Comments
 (0)