voxpupuli / puppet-mongodb

mongodb installation
Apache License 2.0
93 stars 451 forks source link

Don't manage the admin database with puppet #746

Open h-haaks opened 7 months ago

h-haaks commented 7 months ago

What are you seeing

When working on integration tests with mongodb::server::create_admin=true I noticed prefetch of databases failed. The error was fixed in the provider, but it bot me thinking 'why do we manage the admin database end not just the admin user?'

I have tried to bring up mogodb 4.4 trough 7.0 without auth, and it seems the admin database is always there. Given this there should be no reason to manage the database with puppet.

stevenpost commented 7 months ago

I noticed that creating the admin user fails when auth is disabled, on one hand, I wanted to fix this. On the other, does it even make sense to create an admin user when auth is disabled?

h-haaks commented 6 months ago

My tought is that if mongodb allows it, this module should too.

stevenpost commented 6 months ago

Yeah, I agree with that, I just wasn't going to put the effort in at that point :) But willing to at it starting Monday 29th of April.