Skip to content

Commit 52371a9

Browse files
committed
fix duplicate definition of auth_basic-mod
PR 2252 breaks the usage of auth_basic in a vhost, because the module is declared twice: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Apache::Mod[auth_basic] is already declared at (file: /etc/puppetlabs/code/environments/module_updates/modules/apache/manifests/default_mods.pp, line: 142); cannot redeclare (file: /etc/puppetlabs/code/environments/module_updates/modules/apache/manifests/mod/auth_basic.pp, line: 7) (file: /etc/puppetlabs/code/environments/module_updates/modules/apache/manifests/mod/auth_basic.pp, line: 7, column: 3) (file: /etc/puppetlabs/code/environments/module_updates/site-modules/rx_apache/manifests/vhost.pp, line: 336) on node ... fix it by including the appropriate class in defaults_mods, instead of just defining the module
1 parent 92865b3 commit 52371a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/default_mods.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
include apache::mod::mime
140140
include apache::mod::negotiation
141141
include apache::mod::setenvif
142-
::apache::mod { 'auth_basic': }
142+
include apache::mod::auth_basic
143143

144144
if versioncmp($apache_version, '2.4') >= 0 {
145145
# filter is needed by mod_deflate

0 commit comments

Comments
 (0)