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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate declaration error after update to 8.0.0 #2295

Closed
dhs-rec opened this issue Aug 16, 2022 · 1 comment · Fixed by #2287
Closed

Duplicate declaration error after update to 8.0.0 #2295

dhs-rec opened this issue Aug 16, 2022 · 1 comment · Fixed by #2287

Comments

@dhs-rec
Copy link

dhs-rec commented Aug 16, 2022

Describe the Bug

After updating the module to version 8.0.0, I get a duplicate declaration error for apache::vhost resources that use basic auth. However, my Puppet class does not declare Apache::Mod[auth_basic] by itself. The error looks like this:

Duplicate declaration: Apache::Mod[auth_basic] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/apache/manifests/default_mods.pp, line: 142); cannot redeclare (file: /etc/puppetlabs/code/environments/production/modules/apache/manifests/mod/auth_basic.pp, line: 7) (file: /etc/puppetlabs/code/environments/production/modules/apache/manifests/mod/auth_basic.pp, line: 7, column: 3)

Expected Behavior

Should run w/o error, as it did with version 7.0.0.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Update module to version 8.0.0
  2. Run Puppet agent on a host where an apache::vhost is applied that configures basic auth

Environment

  • Version: 8.0.0
  • Platform: Ubuntu 20.04/Debian 10
@ekohl ekohl linked a pull request Aug 17, 2022 that will close this issue
@ekohl
Copy link
Collaborator

ekohl commented Aug 17, 2022

Already fixed in #2287 but needs a new release.

@ekohl ekohl closed this as completed Aug 17, 2022
@dhs-rec dhs-rec changed the title Duplicate decalaration error after update to 8.0.0 Duplicate declaration error after update to 8.0.0 Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants