Last Updated: February 25, 2016
·
1.655K
· alexgorbatchev

mongodb 2.6.3 and puppet

As of June 29th, getting mongodb installed with puppet isn't as easy as it seems. It's somewhat difficult to get official Puppet Labs module v0.8.0 to install mongodb 2.6.3. You end up getting an apt error about mongodb-10gen=2.6.3 not being found. There's an issue and a patch already but it hasn't been published yet.

So here's what you need to do:

git clone https://github.com/puppetlabs/puppetlabs-mongodb.git

Then use the following puppet config:

class { '::mongodb::globals':
  manage_package_repo => true,
  server_package_name => 'mongodb-org',
  version => '2.6.3'
}->
class { '::mongodb::server': }

This worked for me.