|
1 | | -# Ansible role for MongoDB |
2 | | -  |
| 1 | +# Ansible role for MongoDB |
| 2 | +    |
3 | 3 |
|
4 | | -Ansible role which manages [MongoDB](http://www.mongodb.org/). |
| 4 | +Ansible role to install and manage [MongoDB](http://www.mongodb.org/). |
5 | 5 |
|
6 | | -- Install and configure the MongoDB; |
| 6 | +- Install and configure the MongoDB |
7 | 7 | - Configure mongodb users |
| 8 | +- Configure authentication |
8 | 9 | - Configure replication |
9 | | -- Provide handlers for restart and reload; |
10 | 10 | - Setup MMS automation agent; |
11 | 11 |
|
12 | 12 | MongoDB support matrix: |
13 | 13 |
|
14 | | -| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 | |
15 | | -| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | |
16 | | -| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
17 | | -| Ubuntu 18.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
18 | | -| Debian 9.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
19 | | -| Debian 10.x | :no_entry: | :x: | :x: | :white_check_mark: | |
20 | | -| RHEL 7.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
21 | | -| RHEL 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
22 | | -| Amazon Linux 2 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
23 | | - |
24 | | -- :white_check_mark: - fully tested, should works fine |
25 | | -- :interrobang: - maybe works, not tested |
| 14 | +| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 | MongoDB 4.4 | |
| 15 | +| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | :----------------: | |
| 16 | +| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | |
| 17 | +| Ubuntu 18.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | |
| 18 | +| Ubuntu 20.04 | :no_entry: | :x: | :x: | :x: | :white_check_mark: | |
| 19 | +| Debian 9.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| 20 | +| Debian 10.x | :no_entry: | :x: | :x: | :white_check_mark: | :white_check_mark: | |
| 21 | +| RHEL 7.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| 22 | +| RHEL 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| 23 | +| Amazon Linux 2 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| 24 | + |
| 25 | +- :white_check_mark: - fully tested |
26 | 26 | - :x: - don't have official support |
27 | 27 | - :no_entry: - MongoDB has reached EOL |
28 | 28 |
|
29 | 29 | #### Variables |
30 | 30 |
|
31 | 31 | ```yaml |
32 | | -# You can use this variable to control installation source of MongoDB |
33 | | -# 'mongodb' will be installed from Debian/Ubuntu repos |
34 | | -# 'mongodb-org' will be installed from MongoDB official repos |
| 32 | +# This variable is used to set source of MongoDB installation. |
| 33 | +# 'mongodb' - version provided by Debian-based distributions from their official package repositories. |
| 34 | +# 'mongodb-org' - version provided by MongoDB package repository. |
| 35 | +# 'mongodb' is not included in th role test matrix and working of it is not guarantied. |
35 | 36 | mongodb_package: mongodb-org |
36 | 37 |
|
37 | | -# You can control installed version via this param. |
38 | | -# Should be '3.6', '4.0' or '4.2'. This role doesn't support MongoDB < 3.6. |
39 | | -# I will recommend you to use latest version of MongoDB. |
40 | | -mongodb_version: "4.2" |
| 38 | +# `mongodb_version` variable sets version of MongoDB. |
| 39 | +# Should be '3.6', '4.0', '4.2' or '4.4'. This role doesn't support MongoDB < 3.6. |
| 40 | +# I would recommend you to use the latest version of MongoDB. |
| 41 | +mongodb_version: "4.4" |
41 | 42 |
|
42 | 43 | mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager |
43 | 44 | mongodb_pymongo_pip_version: 3.6.1 # Choose PyMong version to install from pip. If not set use latest |
|
0 commit comments