-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Error on using puppet resource rabbitmq_user #147
Comments
Yes ... this pops up in another unexpected way as well: When using a Rabbitmq_user['something'] -> as a 'before' relationship, the same error occurs. If the user is being created, all is well. If it already exists, then the puppet apply fails. |
I'm able to verify this, even with current master. |
https://tickets.puppetlabs.com/browse/MODULES-3084 seems to be the same issue as well. |
I think #598 (rework of #460 by @mpolenchuk) might end up fixing this if I can get it to work. |
The actual issue seems to be unrelated to those two. It's actually much simpler. The code that's trying to ensure that you don't create a user without defining a password is also preventing validate do
if self[:ensure] == :present && !self[:password]
raise ArgumentError, 'must set password when creating user' unless self[:password]
end
end |
Closing via #598 (I'll cherry-pick the fix for this or break it out into another pull if that doesn't get merged for some reason). |
Resolve issue with "puppet resource rabbitmq_user" failing (#147)
Resolve issue with "puppet resource rabbitmq_user" failing (voxpupuli#147)
Resolve issue with "puppet resource rabbitmq_user" failing (voxpupuli#147)
Per the docs, you should be able to see the current users with puppet resource rabbitmq_user.
That currently gives an error on both puppet 3.1.1 & 3.3.2:
Error: Could not run: Validation of Rabbitmq_user[guest] failed: must set password when creating user
Wrapped exception:
must set password when creating user
The text was updated successfully, but these errors were encountered: