Skip to content

Duplicate declaration #270

@LooOOooM

Description

@LooOOooM
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: User[ansible] is already declared at (file: /etc/puppetlabs/code/environments/os_hardening_46919/modules/os_hardening/manifests/minimize_access.pp, line: 236); cannot redeclare (file: /etc/puppetlabs/code/environments/os_hardening_46919/modules/accounts/manifests/user.pp, line: 302) (file: /etc/puppetlabs/code/environments/os_hardening_46919/modules/accounts/manifests/user.pp, line: 302, column: 5) (file: /etc/puppetlabs/code/environments/os_hardening_46919/modules/accounts/manifests/init.pp, line: 27) on node puppet-centos8-testvm1.a.ht-haj-a.de.vier.services
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The Ressource user is liky also used by other Modules. The naming of the ressources within the line 236 in
os_hardening/manifests/minimize_access.pp should be named better in order no to cause a duplicated declaration error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions