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 #270

Closed
LooOOooM opened this issue Mar 22, 2021 · 1 comment
Closed

Duplicate declaration #270

LooOOooM opened this issue Mar 22, 2021 · 1 comment

Comments

@LooOOooM
Copy link
Contributor

LooOOooM commented Mar 22, 2021

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.

@LooOOooM
Copy link
Contributor Author

my bad. Setting the Systemuser to the ignorelist, which should be allowed to have a shell, fixed this error message
pelase close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant