GitHub puppet-mongodb
mongodb installation

Repo Checks ( 14 of 22 successfull )
Metadata Valid
No translation
passed
Correct Puppet Version Range
Supported Puppet version range is %{PUPPET_SUPPORT_RANGE}
passed
With Puppet Version Range
Puppet version range is present in requirements in metadata.json
passed
With Operatingsystem Support
No translation
passed
Operatingsystems
No translation
passed
Supports Only Current Redhat
No translation
passed
Supports Latest Redhat
No translation
failed
Supports Only Current Centos
No translation
passed
Supports Latest Centos
No translation
failed
Supports Only Current Debian
No translation
failed
Supports Latest Debian
No translation
failed
Supports Only Current Ubuntu
No translation
passed
Supports Latest Ubuntu
No translation
failed
Supports Only Current Sles
No translation
passed
Supports Latest Sles
No translation
failed
In Modulesync Repo
Is listed as a module managed using modulesync_config
passed
Synced
Has a .msync.yml file
passed
Latest Modulesync
Has been synchronized with the latest tagged version of modulesync_config
failed
Has Modulesync
Is present in voxpupuli/modulesync_config/managed_modules.yml
passed
Released
Is in modulesync_config and in forge releases.
passed
Valid Sync File
If a (optional) sync file is present, it must not contain a `.travis.yml` entry.
passed
Reference Dot Md
The repository has a REFERENCE.md. It needs to be generated / puppet-strings documentation is missing.
failed

Open Pull Requests

Add support for net.ssl.allowConnectionsWithoutCertificates setting in mongod.conf
enhancement
needs-tests
needs-work
tests-fail
merge-conflicts

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Add support for net.ssl.allowConnectionsWithoutCertificates setting in mongod.conf

This Pull Request (PR) fixes the following issues

Open PR in GitHub
#449 separate definition of /root/.mongorc.js file
needs-work
merge-conflicts

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

<!--
separate definition of /root/.mongorc.js file
-->

This Pull Request (PR) fixes the following issues

<!--
Fixes #449
-->

Open PR in GitHub
PR#182 addon: arbiter documentation + parameter replset_arbiter for mongodb::server
needs-rebase
tests-fail
merge-conflicts

The README currently does not give a hint how to configure an arbiter node for a replica set. That feature has been introduced with pull request #182.
It should also be possible to configure an arbiter by parameter replset_arbiter of mongodb::server.

Open PR in GitHub
modulesync 9.0.0
modulesync

modulesync 9.0.0

Open PR in GitHub
Reorder switches in dbpath_fix find command
bug
needs-feedback

Pull Request (PR) description

Fix ordering of switches in dbpath_fix's find command

This Pull Request (PR) fixes the following issues

Fixes #571

Open PR in GitHub
Fix password changing for SHA-1 mechanism #649

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Added the mechanism parameter for the passwordhash command
```
def password
hash=(value)
if db
ismaster
command = {
updateUser: @resource[:username],
pwd: @resource[:passwordhash],
digestPassword: false
}
command[:mechanisms] = @resource[:auth
mechanism] == :scramsha1 ? ['SCRAM-SHA-1'] : ['SCRAM-SHA-256']

mongoeval("db.runCommand(#{command.tojson})", @resource[:database])
else
Puppet.warning 'User password operations are available only from master host'
end
end
```

Changed unit test for mongodbuser due to new expected line generated for passwordhash command.

This Pull Request (PR) fixes the following issues

Fixes #649

Open PR in GitHub
modulesync 5.2.0
merge-conflicts
modulesync

modulesync 5.1.0

Open PR in GitHub
Use confine to check the existence of a command needed for the fact to resolve
tests-fail

An initial puppet run (eg. in a vagrant box) will produce an error while trying to resolve the mongodbversion fact:
```
Facter: error while resolving custom fact "mongodb
version": undefined method '[]' for nil:NilClass
```
The reason is that the check for the existence of the mongo binary is inside the setcode block.

This pull request uses the fact confinement mechanism to pre-empt the fact resolution if the mongo binary is not available.

Open PR in GitHub
Fix for several issues: SSL, Replicaset initialization, Secondary checking and more.

Pull Request (PR) description

Fix for several issues: SSL, Replicaset initialization, Secondary checking, etc..

This Pull Request (PR) fixes the following issues

Enable MongoDB 5.0 support
Fix mongorcjs typo
Fixed mongorc.js type for secondary check
Add support for Mongo 4.x secondary check
Fix SSL support for MongoDB 4.x
Fix for MongoDB v4 Replica Set initialization

Open PR in GitHub
Use Amazon package repos

Pull Request (PR) description

Using Amazon specific package repos when os name is amazon.

Open PR in GitHub
Slack Integration Config
tests-fail

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Added slack Integration to fix a know bug in OpsManager 4.4 in conf-mms.properties file

<!--

-->

This Pull Request (PR) fixes the following issues

Ops Manager 4.4. has known issue with slack integration. We contact support and they asked us to do couple

configurations which apparently are not in this monog module. Theses two settings are slack client id and client secret #### for slack integration.

Open PR in GitHub
Add support for replication.enableMajorityReadConcern setting
enhancement
needs-work
merge-conflicts

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Add support for replication.enableMajorityReadConcern setting in mongod.conf.

This Pull Request (PR) fixes the following issues

542

Open PR in GitHub
Add sets_creation so we can disable this class on Arbitrator servers when auth is enabled

…while auth is enabled

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

On arbitrator servers you get the following message when auth is enabled:

Notice: /Stage[main]/Mongodb::Replset/Mongodb_replset[example_set]/ensure: created (corrective)
Warning: Host mongoarb01:27017 is available, but you are unauthorized because of authentication is enabled: true

In debug mode you can see:
```
Debug: Request failed: 'Execution of '/usr/bin/mongo admin --quiet --host 127.0.0.1:27017 --eval load('/root/.mongorc.js'); printjson(rs.conf())' returned 252: uncaught exception: Error: Could not retrieve replica set config: {

      "ok" : 0,

      "errmsg" : "not authorized on admin to execute command { replSetGetConfig: 1.0, lsid: { id: UUID(\"a2213cd2-e6c4-4d15-bf29-d01b7a54a838\") }, $db: \"admin\" }",

      "code" : 13,

      "codeName" : "Unauthorized"

} :
```
The admin user has all the needed rights but this errmsg keeps telling us it has not.

For this reason I created a variable so we can disable this class on our arbitrator nodes by setting:
mongodb::replset::sets_creation: false

This Pull Request (PR) fixes the following issues

<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->

Open PR in GitHub
Set correct auth_mechanism for updateUser
bug

Currently the mongodb command updateUser defaults to SCRAM-SHA-256 but you can't update these passwords.

And also show an error when the update goes wrong.

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Currently the mongodb command updateUser defaults to SCRAM-SHA-256 but you can't update these passwords.

So now set the correct mecahnisms and handle the response of the command. So if you try to update this hash with SCRAM-SHA-256 you will see an error message. If you use scram_sha_1 it will update the password and continue like it should.

This Pull Request (PR) fixes the following issues

Fixes #649
Fixes https://github.com/voxpupuli/puppet-mongodb/pull/650

Open PR in GitHub
support for pure yaml in mongodb.cfg
needs-rebase
tests-fail

<!--
Thank you for contributing to this project!

-->

Pull Request (PR) description

Support for pure yaml in /etc/mongodb.cfg.
Right now only records like net.bindIp are supported, and if for example, you are using custom configuration template and your configuration looks like:
yaml
net:
port: 27017
bindIp: 0.0.0.0

you will get an error like Error: Could not prefetch mongodb_database provider 'mongodb': Could not evaluate MongoDB shell command: load('/root/.mongorc.js'); rs.slaveOk();printjson(db.getMongo().getDBs()) when using providers.
This PR adds support for both configuration file formats

This Pull Request (PR) fixes the following issues

Fixes #562 for user @seidler2547

Open PR in GitHub
Default to latest os supported repo version
enhancement

Pull Request (PR) description

As this module now support the latest mongodb versions the default repo version should reflect this.

This Pull Request (PR) fixes the following issues

Fixes #754

Open PR in GitHub
Move default version to repo.pp

Pull Request (PR) description

Default version in globals.pp doesn't allow to use repolocation and having repolocation doesn't work at all, because it fails on check, as version is always defined
if $version != undef and $repo_location != undef {
fail('version' is not supported with 'repo_location')
}

To fix this I propose to set default version only if both $version and $repo_location are undef.

This Pull Request (PR) fixes the following issues

One can't use repo_location setting

Open PR in GitHub