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

user creation idempotency issues #412

Closed
wyardley opened this issue Oct 26, 2017 · 2 comments · Fixed by #558
Closed

user creation idempotency issues #412

wyardley opened this issue Oct 26, 2017 · 2 comments · Fixed by #558
Labels
bug Something isn't working

Comments

@wyardley
Copy link
Contributor

See, e.g., https://tickets.puppetlabs.com/browse/MODULES-3749


Info: Applying configuration version '1471431010'
--
Warning: User info is available only from master host
Warning: User creation is available only from master host
Notice: /Stage[main]/Mongodb::Server/Mongodb::Db[admin]/Mongodb_user[User admin on db admin]/ensure: created
Warning: User creation is available only from master host
Notice: /Stage[main]/Main/Node[mongo1]/Mongodb::Db[kannel]/Mongodb_user[User kannel on db kannel]/ensure: created
Warning: User creation is available only from master host
Notice: /Stage[main]/Main/Node[mongo1]/Mongodb::Db[kannel_ll]/Mongodb_user[User kannel_ll on db kannel_ll]/ensure: created
Notice: Applied catalog in 0.80 seconds

This may be hard to fix while we're still supporting 2.x

@DDSloan96
Copy link

Is there any workaround for this?

@juniorsysadmin juniorsysadmin added the bug Something isn't working label Mar 17, 2018
@JvGinkel
Copy link
Contributor

I'm not sure why there is a warning here, can't we move these messages to a debug message for example. I would like to have the runs idempotent and we don't have to manage users on non-master nodes.

https://github.com/voxpupuli/puppet-mongodb/blob/master/lib/puppet/provider/mongodb_user/mongodb.rb#L23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants