Version information
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
Add this module to your Puppetfile:
mod 'thias-mongodb', '1.0.8'
Learn more about managing modules with a PuppetfileDocumentation
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 servermongodb::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',
}
2019-11-20 - 1.0.8
- Change systemd LimitNPROC default to 48000 (#9, @osgpcq).
2019-01-21 - 1.0.7
- Skip backup when it's supposed to be (#6, @edupr91).
2017-02-15 - 1.0.6
- Allow more compression options & post backup parameter (@forgodssake, #5).
2016-09-12 - 1.0.5
- Fix port variable for 2.4 and 2.6 configs (@sp-borja-juncosa, #4).
2016-06-13 - 1.0.4
- Add optional backup script and cron job (@forgodssake).
- Fix versioncmp (#3, @edupr91).
2016-06-09 - 1.0.3
- Switch to the YAML configuration for 3.x to allow using wiredTiger engine.
- Add authorization option (#1, @forgodssake).
2015-04-01 - 1.0.2
- Add mongod_version fact.
- Add mongod.conf template from 3.0.0.
2014-12-22 - 1.0.1
- Lowercase parameters in missing places.
2014-12-22 - 1.0.0
- Add conf template for 2.6 (RHEL7).
- Lowercase all parameters, and default them to undef.
- Add extra_options hash to set any options in the conf file.
- Install the client package too.
- Fix require and notify in the key definition.
- Cosmetic cleanups.
2013-06-13 - 0.1.2
- Fix the service name for Debian and Ubuntu.
2013-05-20 - 0.1.1
- Add support for overriding package, service and configuration file names.
- Update README and use markdown
- Change to 2-space indent
2012-12-18 - 0.1.0
- Add replSet option.
- Use undef by default instead of false where we want the defaults to apply
- Add rest, keyFile, smallfiles options.
- Add mongodb::key definition for installing rs keys.
2012-04-23 - 0.0.2
- Add basic support for enabling auth.
2012-04-20 - 0.0.1
- Initial release.
Copyright (C) 2011-2016 Matthias Saou Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.