dev-sec / puppet-os-hardening

This puppet module provides numerous security-related configurations, providing all-round base protection.
http://dev-sec.io/
Apache License 2.0
280 stars 101 forks source link

Duplicate declaration #270

Closed LooOOooM closed 3 years ago

LooOOooM commented 3 years ago
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 commented 3 years ago

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