Merge pull request #138 from ninech/auth
Workaround to enable mongodb_user/database to work with authentication.
commit 407093c32d6a61a8c6e908e8233db4d1e985b123
Author: Johannes Graf graf@synyx.de
Date: Thu Nov 13 18:12:48 2014 +0100
Fixed params.pp
There are two issues on Debian based distributions using
mongodb.org packages:
```puppet
class {'::mongodb::globals':
manage_package_repo => true,
}->
class {'::mongodb::server':}->
class {'::mongodb::client':}
$config is undef for mongodb config unter /etc
Error: Parameter path failed on File[undef]: File paths must be fully qualified, not 'undef' at /etc/puppet/modules/mongodb/manifests/server/config.pp:83
$service_name is mongodb instead of mongod
Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Could not evaluate: Could not find init script or upstart conf file for 'mongodb'
Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Failed to call refresh: Could not find init script or upstart conf file for 'mongodb'
Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Could not find init script or upstart conf file for 'mongodb'
Warning: /Stage[main]/Mongodb::Server::Service/Mongodb_conn_validator[mongodb]: Skipping because of failed dependencies
Warning: /Stage[main]/Mongodb::Server/Anchor[mongodb::server::end]: Skipping because of failed dependencies
commit fe562b86f388a6d107bb1f3cb3b32a3978f59c2a Merge: 7651365 34a9f7a Author: Colleen Murphy cmurphy@users.noreply.github.com Date: Wed Nov 26 10:39:54 2014 -0800
commit 34a9f7aea3d513282b3de2190709c61522554dcd Author: Morgan Haskel morgan@puppetlabs.com Date: Wed Nov 26 13:37:36 2014 -0500
commit 7651365ec5cdcd74909ff79317426b1b7d55d1a9 Merge: 8da88be aeb3bfe Author: Travis Fields cyberious@users.noreply.github.com Date: Fri Nov 21 19:25:43 2014 -0500
commit aeb3bfe100f94048a20c1d75013bc4131a27f1ff Author: Morgan Haskel morgan@puppetlabs.com Date: Fri Nov 21 19:23:08 2014 -0500
commit 8da88bed9f4d59e6582a2bd23c2c5ddd0a5d954d Merge: d414ae5 ac0671e Author: Morgan Haskel morgan@puppetlabs.com Date: Fri Nov 21 19:15:01 2014 -0500
commit ac0671e89764f59c16deefe0cde803a6856c2435 Author: Lauren Rother lauren.rother@puppetlabs.com Date: Thu Nov 20 15:57:32 2014 -0800
commit d414ae577777ed288bab7485c8db73638c21f7ba Merge: a4d5936 a1c73c8 Author: Hunter Haugen hunter@puppetlabs.com Date: Thu Nov 20 10:53:37 2014 -0800
commit a4d593690b5fad43a0688e5848b2e2b7c6ab5b88 Merge: 75d5da2 c8bbac7 Author: Morgan Haskel morgan@puppetlabs.com Date: Thu Nov 20 13:40:58 2014 -0500
commit 75d5da27b32c1929c21f2a7cd1c8640dbdb2f8a4 Merge: d8134e3 407093c Author: Hunter Haugen hunter@puppetlabs.com Date: Thu Nov 20 10:40:48 2014 -0800
commit d8134e3cfd164aeca851d4a7abcb28edcfb750dc Merge: 3dd7699 3fc5835 Author: Hunter Haugen hunter@puppetlabs.com Date: Thu Nov 20 10:38:03 2014 -0800
commit 407093c32d6a61a8c6e908e8233db4d1e985b123 Author: Johannes Graf graf@synyx.de Date: Thu Nov 13 18:12:48 2014 +0100
$config is undef for mongodb config unter /etc
Error: Parameter path failed on File[undef]: File paths must be fully qualified, not 'undef' at /etc/puppet/modules/mongodb/manifests/server/config.pp:83
$service_name is
mongodb
instead ofmongod
Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Could not evaluate: Could not find init script or upstart conf file for 'mongodb' Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Failed to call refresh: Could not find init script or upstart conf file for 'mongodb' Error: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Could not find init script or upstart conf file for 'mongodb' Warning: /Stage[main]/Mongodb::Server::Service/Mongodb_conn_validator[mongodb]: Skipping because of failed dependencies Warning: /Stage[main]/Mongodb::Server/Anchor[mongodb::server::end]: Skipping because of failed dependencies
Merge pull request #139 from amoswood/master
Mongo 2.6 version and config support
Fix typo in README so that puppet code formatting gets applied.
Fix spec for ruby 1.8
params and globals improvements and clean-up for 2.6 support
Document the new mongodb_user parameter.
Set version to 2.6.x for spec
Add Mongodb 2.4.x compatibility for mongodb_user
Fix specs for improved type providers
Reimplement mongodb_database provider based on Puppet::Provider::Mongodb
Reimplement mongodb_user provider
Based on Puppet::Provider::Mongodb for mongodb 2.6.x
Add a username property to mongodb_user.
This allows to have users with the same name in different databases.
Addapt mongodb types to allow resource listing.
database is a property not a parameter
database default to test, not to fail anymore password_hash default to false, not to fail anymore
redux: revert key_server in apt repo
Merge branch 'master' of https://github.com/amoswood/puppetlabs-mongodb
reset key_server to use "hkp"
v2.6 config file template; custom config template
change key_server to not brake apt
Fixed puppet management of configuration file
In versions 2.4 and 2.6, the default configuration file name for Debian changed and was not captured in the params.pp file.
allowed server and client to properly use globals::version. Included Debian support for pre 2.6 and post 2.6 package names
Add Puppet::Provider::Mongodb for shared provider code.
v2.6 config file template; custom config template
change key_server to not brake apt
Fixed puppet management of configuration file
In versions 2.4 and 2.6, the default configuration file name for Debian changed and was not captured in the params.pp file.
allowed server and client to properly use globals::version. Included Debian support for pre 2.6 and post 2.6 package names
Update README.md
Update mongodb.conf.erb
Update server.pp
Update config.pp
Update init.pp