-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
4.x version. Initialization of replset and user creation problem. #583
Comments
Does the anyone use this module with MongoDB 4.2 version? Is it everything is OK? |
Using this mod via Satellite 6.7 and MongoDB 4.2 |
Can someone fix the issue. It's impossible to use the module with mongo 4.x enabling auth and replica set. |
Don't even need a replset. Can't setup admin user, database and database user here with auth enabled. |
We have the same issue, but we found an kind-of acceptable workaround in comparison to what would have to change in the module. Within a wrapper module we check it like so: if $facts['mongodb_is_master'] == 'not_installed' {
$cluster_args = {}
} else {
create_resources('mongodb::db', $databases)
$cluster_args = {
# your actual config goes here
}
}
class { '::mongodb::server':
# all your config
* => $cluster_args,
} |
i don't understand what the values of given the name, you'd think the value should be Boolean |
Another dirty workaround during the first deployment run with 4.2:
|
I'm using puppet-mongodb module directly from https://github.com/voxpupuli/puppet-mongodb
:git => 'https://github.com/voxpupuli/puppet-mongodb.git'
:tag => 'v3.1.0'
What are you seeing
When I use MongoDB 3.x (3.4, 3.6) everything is OK. During installation of node I get just one warning:
Warning: Host is available, but you are unauthorized because of authentication is enabled: true
but everything is OK. Puppet successfully completes initialization of replset (primary) and all necessary users have been created:
Great!
So, when I'm trying to do the same with MongoDB 4.x versions (my hiera configuration of puppet is totally the same in all cases) the result is negative:
So, initialization of replset (primary), authentication, and creation of users failed. So, MongoDB isn't prepared to use.
What behaviour did you expect instead
It would be great to get the same result with 4.x in preparation of MongoDB as I have with 3.x versions.
Thanks.
The text was updated successfully, but these errors were encountered: