Forge Home

mongodb

MongoDB simple module

18,224 downloads

2,078 latest version

5.0 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.8 (latest)
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.1
released Nov 20th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=2.7.20 <7.0.0
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'thias-mongodb', '1.0.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add thias-mongodb
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install thias-mongodb --version 1.0.8

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

thias/mongodb — version 1.0.8 Nov 20th 2019

puppet-mongodb

Overview

Install, enable and configure the MongoDB scalable, high-performance NoSQL database. This module is quite Red Hat Enterprise Linux (RHEL) or clones (CentOS) specific, but should be easy to make more generic. It's meant to be simple, to manage only the service's configuration (not the MongoDB resources themselves) and to not have any external module dependencies.

The default generated configuration file is meant to be as close a possible to the one included in the Fedora/EPEL packages.

  • mongodb : Manage the MongoDB NoSQL server
  • mongodb::key : Manage auth key file to be used for MongoDB replicas

Examples

mongodb::key { '/etc/mongodb.key':
  content => 'c9otjehasAvlactocPiphAgC9',
}

For MongoDB 2.x :

class { '::mongodb':
  bind_ip => '0.0.0.0',
  auth    => 'true',
  rest    => 'true',
  replset => 'rs0',
  keyfile => '/etc/mongodb.key',
}

For MongoDB 3.x :

class { '::mongodb':
  storage_engine          => 'wiredTiger',
  net_bindip              => '0.0.0.0',
  security_keyfile        => '/etc/mongodb.key',
  replication_replsetname => 'rs0',
}