-
Notifications
You must be signed in to change notification settings - Fork 102
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
user resource conflict with puppetlabs/apache: Duplicate declaration: User[www-data] is already declared #157
Comments
Are you using Puppet Enterprise? If so, do you have the |
For now, I'm just using community puppet. I might encounter enterprise later on. |
Put the user which is declared in two places into the parameter
|
Thanks @mcgege! |
A better way to fix this would be to use https://forge.puppet.com/crayfishx/purge instead of managing users manually: purge { 'user':
manage_property => 'shell',
state => $nologin_path,
if => ['uid', '<=', $maxid],
} This allows to merge behavior with other modules managing their own users. |
@raphink I agree ... but is this solution / module still maintained? |
@mcgege as far as I know yes. I've contributed to it recently and @crayfishx was reactive on it. |
FYI - as @raphink said, it is still being maintained - a new release covering Puppet 6 testing should be out soon too |
Again: good idea ... I'll open a issue to implement this (either I find some time or someone else picks this up) |
Just for documentation: The last ~2 years no reaction can be found on https://github.com/crayfishx/puppet-purge/ |
@mcgege But ignoring existing users is not hardening them, right? ;-) What the idea here: The existing users have to be hardened in the existing configuration code? |
When using os_hardening along apache
https://travis-ci.org/juju4/puppet-meta-harden-linux/jobs/432286466#L3000
I'm not sure: would renaming resource and use user attributes be enough?
The text was updated successfully, but these errors were encountered: