Code Monkey home page Code Monkey logo

puppet-mongodb_ops_manager's Introduction

puppet-mongodb_ops_manager

Install and Manage MongoDB Ops Manager (MMS)

See:

  https://docs.opsmanager.mongodb.com/current/installation/

It relies on puppet module puppetlabs/mongodb to install the mongodb database. The ops manager application and ops manager 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 or backup mongodb databases.

NOTE: *** This is a very much a first version and currently support readhat/centos 6 and 7. However its a great way to get started ***

Minimal Usage:

Setup a backup mongodb on a separate server if using the backup daemon

class { 'mongodb_ops_manager::backup_db':
  logpath      => '/data/backupdb/mongodb.log',
  dbpath       => '/data/backupdb',
  version      => '2.6.11-1',  
}

On the ops manager server install the application db, the mms application

class { 'mongodb_ops_manager::application_db':
  logpath      => '/data/mmsdb/mongodb.log',
  dbpath       => '/data/mmsdb',
  version      => '2.6.11-1',  
}

class { 'mongodb_ops_manager::application':
  mms_host              => 'mms.mycompany.com",
  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_ops_manager::application_db'] 
}

On the ops manager server install also install the backup daemon if doing backup of mongodb databases

class { 'mongodb_ops_manager::backup':
  backup_db_host => 'backupserver',
  require        => Class['mongodb_ops_manager::application']
} 

Logon to the ops manager server (http://mms.mycompany.com:8080) and register a user and find the mmsApiKey and mmsGroupId.

On the ops manager server install automation agent specifying :

class { 'mongodb_ops_manager::automation_agent':
  mmsApiKey                            => 'mmsApiKey',
  mmsGroupId                           => 'mmsGroupId'
  mmsBaseUrl                           => 'http://mms.mycompany.com:8080',
  sslRequireValidMMSServerCertificates => false
} 

Intially its easier to setup without SSL certificates and then change it to true later.

NOTE: sslRequireValidMMSServerCertificates defaults to true.

Detailed Usage:

TO COME:

Ulimits:

Remove the default ulimit settings that come with the operating system and use the puppet module "arioch/ulimit" to set the ulimits before configuring the server(s)

file {'remove_default_ulimit_settings':
  ensure  => absent,
  path    => '/etc/security/limits.d/90-nproc.conf',
  purge   => true,
  force   => true
}

ulimit::rule {
 'soft_nofile':
  ulimit_domain => '*',
  ulimit_type   => 'soft',
  ulimit_item   => 'nofile',
  ulimit_value  => '64000',
  require       => File['remove_default_ulimit_settings'];

 'hard_nofile':
  ulimit_domain => '*',
  ulimit_type   => 'hard',
  ulimit_item   => 'nofile',
  ulimit_value  => '64000',
  require       => File['remove_default_ulimit_settings'];
  
 'soft_nproc':
  ulimit_domain => '*',
  ulimit_type   => 'soft',
  ulimit_item   => 'nproc',
  ulimit_value  => '32000',
  require       => File['remove_default_ulimit_settings'];

 'hard_nproc':
  ulimit_domain => '*',
  ulimit_type   => 'hard',
  ulimit_item   => 'nproc',
  ulimit_value  => '32000',
  require       => File['remove_default_ulimit_settings'];
}

puppet-mongodb_ops_manager's People

Contributors

neillturner avatar jengstrom avatar

Watchers

 avatar James Cloos avatar  avatar

puppet-mongodb_ops_manager's Issues

Paths

Looks like /usr/bin nor /bin is not in $PATH in my env by default. Can you please update the code (manifests/application.pp) to include the path or allow me to push to a branch?

exec { 'download-mms-onprem':
command => "curl -OL https://downloads.mongodb.com/on-prem-mms/rpm/mongodb-mms-${version}.x86_64.rpm",
cwd => '/tmp',
path => '/usr/bin:$PATH',
environment => ["https_proxy=${https_proxy}"],
creates => "/tmp/mongodb-mms-${version}.x86_64.rpm",
require => File_line['/etc/sudoers']
}

exec { "rpm --install /tmp/mongodb-mms-${version}.x86_64.rpm":
command => "rpm --install /tmp/mongodb-mms-${version}.x86_64.rpm",
path => '/bin:$PATH',
cwd => '/tmp',
unless => "rpm -q mongodb-mms-${version}",
require => Exec['download-mms-onprem']
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.