Skip to content

Latest commit

 

History

History

mongodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

MongoDB puppet manifest

Manifest to manage MongoDB. It supports only Linux, because I don't believe in running Windows or MacOS in production servers.

Configuration

Edit the file manifests/params.pp and specify mongoDB's version and linux architecture ( i686, x86_64 or i386 )

Usage

Just declare for your node:

node "node.my.host"  {   
	class { 'mongodb':   
		disablenuma => 'yes',  
		replicaset => 'myReplSet'  
	}   
}   

Parameters:

Scripts and Folders

  • /etc/conf/mongodb.conf - Configuration file. For a detailed syntax see
  • /etc/init.d/mongodb - Init script. MongoDB runs under 'mongodb' user and group
  • /opt/mongodb - Installation folder
  • /data/mongodb - data files
  • /data/mongodb/logs - log files

TODO

  • Make the init script generic - currently is for Suse Linux only
  • Support sharding
  • Externalise the version as a parameter