Only create database and user when mongodb_is_master#558
Only create database and user when mongodb_is_master#558bastelfreak merged 2 commits intovoxpupuli:masterfrom
Conversation
|
Looks like this breaks tests and actually breaks idempotency in the acceptance tests. This is probably because the fact is |
|
@ekohl good point, I changed the condition so the code will always be executed unless the value is What do you think? |
|
@JvGinkel can you take a look at the failing acceptance tests? |
|
hrm. those issues might come for a new rspec/rspec-puppet release. CC: @alexjfisher |
|
Hi @bastelfreak I just did a |
|
@JvGinkel You can't reproduce it this morning because rspec-puppet 2.7.7 was released a few hours ago and it fixed the issue. I've restarted your build and now it passes. |
ekohl
left a comment
There was a problem hiding this comment.
I think this should be good to go.
|
This always returns true on my systems, am I missing something? Running puppet 5.5.20 with PE 2018.1 and module 3.1.0 |
|
@oniGino does your system have more than one node? |
Yes 3 nodes, |
Pull Request (PR) description
Only create database and user when running on a primary/master node. This way we have idempotent runs again on none primary servers.
Unfortunately the fact returns a string
trueso there is some ugliness withlint:ignorein the if statement.This Pull Request (PR) fixes the following issues
Fixes #412