Install and configure various parts of a MongoDB cluster.
Install MongoDB server and run the service.
By default the latest stable version of MongoDB 3.X packages will be installed from official repository at repo.mongodb.org.
Note
By default on Debian 8 (or later) MongoDB 2.4 packages will be installed from distribution
repository. It is also possible to install newer version from repo.mongodb.org by setting
mongodb:lookup:use_repo
Pillar to the True
and other related keys. See pillar.example
file for details.
Install MongoDB logrotate configuration file.
Install/configure MongoDB query router service.
This state requires mongos:settings:config_svrs
Pillar to be set correctly, its value will be
substituted as argument for --configdb
option of mongos
executable (in the configuration
file). See MongoDB reference manual for additional information.
Note
The state currently works only on Ununtu LTS releases 12.04 and 14.04.
Install additional tools and Python libraries.
This formula works "out-of-the-box" and tested on those operating systems:
- CentOS/Red Hat Enterprise Linux 5, 6 and 7
- Debian GNU/Linux 8 "Jessie" (stable)
- Ubuntu LTS 12.04
- Ubuntu LTS 14.04