Skip to content

4.x version. Initialization of replset and user creation problem. #583

@bimcas

Description

@bimcas
  • Puppet: 5.5.19
  • puppet-mongodb module version: v3.1.0
  • MongoDB: 4.0.x and 4.2.x

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:

[root@myhost.example.com ~]# mongo
MongoDB shell version v3.6.17
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("1d48b06f-1b16-4235-92a9-4c36ff9c1844") }
MongoDB server version: 3.6.17
mon-rep:PRIMARY>

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:

MongoDB shell version v4.2.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("0b21d660-4eca-4e13-a9ea-79c9ff33476d") }
MongoDB server version: 4.2.6
**Error: Authentication failed.**
>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions