Install and Manage MongoDB MMS On Premise
See:
http://mms.mongodb.com/help-hosted/v1.5/tutorial/install-on-prem-quick-start/
http://mms.mongodb.com/help-hosted/v1.5/tutorial/nav/install-on-prem/
It relies on puppet module puppetlabs/mongodb to install the mongodb database. The mms application and mms mongodb database can be installed on one server. The backup database should be first installed on another server.
Currently the scripts don't support authentication or replica sets for application and backup databases
First setup a backup mongodb on a separate server
class { 'mongodb_mms::backup_db':
logpath => '/data/backupdb/mongodb.log',
dbpath => '/data/backupdb',
version => '2.6.4-1',
}
Then on the mms server setup the application db, the mms application, backup application, monitoring and backup agents:
class { 'mongodb_mms::application_db':
logpath => '/data/mmsdb/mongodb.log',
dbpath => '/data/mmsdb',
version => '2.6.4-1',
}
class { 'mongodb_mms::application':
from_email_addr => '[email protected]',
reply_to_email_addr => '[email protected]',
admin_from_email_addr => '[email protected]',
admin_email_addr => '[email protected]',
bounce_email_addr => '[email protected]',
mail_hostname => 'mymailhost.com',
mail_port => 25,
require => Class['mongodb_mms::application_db']
}
class { 'mongodb_mms::backup':
backup_db_host => 'backupserver',
require => Class['mongodb_mms::application']
}
class { 'mongodb_mms::mms_agent':
require => Class['mongodb_mms::backup']
}
class { 'mongodb_mms::backup_agent':
mmsApiKey => 'mmsApiKey',
require => Class['mongodb_mms::mms_agent']
}
TO COME: