Forge Home

mongodb

mongodb puppet module

679,373 downloads

76,523 latest version

3.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
  • 0.17.0
  • 0.16.0
  • 0.15.0
  • 0.14.0
  • 0.13.0
  • 0.12.0
  • 0.11.0
  • 0.10.0
  • 0.9.0
  • 0.8.0
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.0
  • 0.3.0-rc1 (pre-release)
  • 0.2.0
  • 0.1.0
  • 0.0.2
  • 0.0.1 (deleted)
released Nov 11th 2013
This module has been deprecated by its author since Oct 27th 2017.

The author has suggested puppet-mongodb as its replacement.

Start using this module

Documentation

puppetlabs/mongodb — version 0.3.0 Nov 11th 2013

mongodb puppet module

Build Status

Overview

Installs mongodb on RHEL/Ubuntu/Debian from OS repo, or alternatively per 10gen installation documentation.

Deprecation Warning

Release 0.3 will be the final prototypical release for the puppetlabs-mongodb module. The development api should be considered deprecated and will not work for the forthcoming 1.0 module release. If your project depends on the current API, please pin your dependencies to ensure your environments don't break.

Usage

class mongodb

Parameters:

  • enable_10gen (default: false) - Whether or not to set up 10gen software repositories
  • init (auto discovered) - override init (sysv or upstart) for Debian derivatives
  • location - override apt location configuration for Debian derivatives
  • packagename (auto discovered) - override the package name
  • servicename (auto discovered) - override the service name
  • service_enable (default: true) - enable or disable the service

By default ubuntu is upstart and debian uses sysv.

Examples:

class { 'mongodb':
  init => 'sysv',
}

class { 'mongodb':
  enable_10gen => true,
}

Supported Platforms

  • Debian Wheezy
  • Ubuntu 12.04 (precise)
  • RHEL 6

Testing

Module testing should be run under Bundler with the gem versions as specified in the Gemfile. Test setup and teardown is handled with rake tasks, so the supported way of running tests is with bundle exec rake spec.

Installing testing dependencies:

$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.1.0) 
Installing diff-lcs (1.1.3) 
Installing facter (1.6.18) 
Installing json_pure (1.8.1) 
Installing hiera (1.2.1) 
Installing metaclass (0.0.1) 
Installing mocha (0.10.5) 
Installing rgen (0.6.6) 
Installing puppet (3.3.1) 
Installing rspec-core (2.10.1) 
Installing rspec-expectations (2.10.0) 
Installing rspec-mocks (2.10.1) 
Installing rspec (2.10.0) 
Installing rspec-puppet (0.1.6) 
Installing puppetlabs_spec_helper (0.4.1) 
Using bundler (1.3.5) 
Your bundle is complete!

Running the tests:

$ bundle exec rake spec
Cloning into 'spec/fixtures/modules/stdlib'...
remote: Counting objects: 4313, done.
remote: Compressing objects: 100% (2482/2482), done.
remote: Total 4313 (delta 1667), reused 3895 (delta 1296)
Receiving objects: 100% (4313/4313), 748.71 KiB | 409.00 KiB/s, done.
Resolving deltas: 100% (1667/1667), done.
Checking connectivity... done
HEAD is now at d60d872 Merge branch 'pull-180'
Cloning into 'spec/fixtures/modules/apt'...
remote: Counting objects: 1361, done.
remote: Compressing objects: 100% (909/909), done.
remote: Total 1361 (delta 669), reused 1085 (delta 433)
Receiving objects: 100% (1361/1361), 239.60 KiB | 392.00 KiB/s, done.
Resolving deltas: 100% (669/669), done.
Checking connectivity... done
HEAD is now at a350da7 Merge pull request #182 from stefanvanwouw/master
/home/adrien/.rbenv/versions/1.9.3-p392/bin/ruby -S rspec spec/classes/mongodb_spec.rb --color
..........
Finished in 1.54 seconds
10 examples, 0 failures