puppetlabs/puppetlabs-mongodb — pull request #63 by n1tr0g (2013-11-10 15:39:26+00:00)
Title: Refactor of the module

Refactor mongodb server.

Based on the pattern design from puppetlabs modules I added some new classes to make the functionality more self-contained (mongodb::server, mongodb::install, mongodb::config, mongodb::repo, etc).

Also the major change is the introduction of the mongodb::globals class which should be used for node/server specific settings, which could be the same for various mongod instances on the same server.

The main mongodb::server class has similar API than the current mongodb, with extra parameters to cover new mongod functionality.

New parameters:
- verbositylevel
- quotafiles
- diaglog
- directoryperdb
- profile

Furthermore the mongodb class was modified to use the new mongodb::server class so that the current module users who uses the default parameters values should be able to upgrade without any changes. More testing
needed.

This commit is not final, because I was hoping for an early review and possible feedback or merge with the new apenney:refactor/full branch.

As the previous module the OS supported are Redhat/Centos and Debian based Linux (teted on Debian and Ubuntu).

In the future I was hoping to add more additional functionality such as bindings, mongodb user management/authentication via native type and replica set support.