mongodb

MongoDB simple module

Matthias Saou

thias

16,625 downloads

1,559 latest version

5.0 quality score

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
  • RedHat
    ,
    CentOS
    ,
    Debian
    ,
    Ubuntu

Start using this module

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',
}