Updating MongoDB support matrix on README.md

This commit is contained in:
Thiago Almeida 2019-05-20 09:36:58 +02:00
parent 3490662522
commit 0397e45a52
1 changed files with 60 additions and 42 deletions

View File

@ -1,24 +1,25 @@
Ansible role for MongoDB [![Build Status](https://travis-ci.org/UnderGreen/ansible-role-mongodb.svg?branch=master)](https://travis-ci.org/UnderGreen/ansible-role-mongodb)
============
# Ansible role for MongoDB [![Build Status](https://travis-ci.org/UnderGreen/ansible-role-mongodb.svg?branch=master)](https://travis-ci.org/UnderGreen/ansible-role-mongodb)
Ansible role which manages [MongoDB](http://www.mongodb.org/).
* Install and configure the MongoDB;
* Configure mongodb users
* Configure replication
* Provide handlers for restart and reload;
* Setup MMS authomation agent;
- Install and configure the MongoDB;
- Configure mongodb users
- Configure replication
- Provide handlers for restart and reload;
- Setup MMS authomation agent;
MongoDB support matrix:
| Distribution | < MongoDB 3.0 | MongoDB 3.2 | MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 |
| ------------ |:-------------:|:-----------:|:-----------:|:-----------:|:-----------:|
| Ubuntu 14.04 | :no_entry: | :no_entry:| :white_check_mark:| :white_check_mark:| :white_check_mark:|
| Ubuntu 16.04 | :no_entry: | :no_entry:| :white_check_mark:| :white_check_mark:| :white_check_mark:|
| Ubuntu 18.04 | :no_entry: | :no_entry:| :x:| :white_check_mark:| :white_check_mark:|
| Debian 8.x | :no_entry: | :no_entry:| :white_check_mark:| :white_check_mark:| :white_check_mark:|
| Debian 9.x | :no_entry: | :no_entry:| :x:| :white_check_mark:| :white_check_mark:|
| RHEL 6.x | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark:| :white_check_mark:|
| RHEL 7.x | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark:| :white_check_mark:|
| -------------- | :-----------: | :---------: | :----------------: | :----------------: | :----------------: |
| Ubuntu 14.04 | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 16.04 | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Ubuntu 18.04 | :no_entry: | :no_entry: | :x: | :white_check_mark: | :white_check_mark: |
| Debian 8.x | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Debian 9.x | :no_entry: | :no_entry: | :x: | :white_check_mark: | :white_check_mark: |
| RHEL 6.x | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| RHEL 7.x | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Amazon Linux 2 | :no_entry: | :no_entry: | :no_entry: | :no_entry: | :white_check_mark: |
- :white_check_mark: - fully tested, should works fine
- :interrobang: - maybe works, not tested
@ -98,7 +99,11 @@ mongodb_replication_oplogsize: 1024 # specifies a maximum size in
## setParameter options
# Configure setParameter option.
# Example :
mongodb_set_parameters: { "enableLocalhostAuthBypass": "true", "authenticationMechanisms": "SCRAM-SHA-1,MONGODB-CR" }
mongodb_set_parameters:
{
"enableLocalhostAuthBypass": "true",
"authenticationMechanisms": "SCRAM-SHA-1,MONGODB-CR",
}
# MMS Agent
mongodb_mms_agent_pkg: https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent_7.2.0.488-1_amd64.ubuntu1604.deb
@ -149,6 +154,7 @@ mongodb_root_admin_password: passw0rd
Add `undergreen.mongodb` to your roles and set vars in your playbook file.
Example vars for authorization:
```yaml
mongodb_security_authorization: "enabled"
mongodb_users:
@ -159,7 +165,9 @@ mongodb_users:
database: app_development
}
```
Example vars for oplog user:
```yaml
mongodb_oplog_users:
- {
@ -167,7 +175,9 @@ mongodb_oplog_users:
password: passw0rd
}
```
Required vars to change on production:
```yaml
mongodb_user_admin_password
mongodb_root_admin_password
@ -176,17 +186,25 @@ mongodb_root_backup_password
# if you use replication and authorization
mongodb_security_keyfile
```
Example vars for replication:
```yaml
# It's a 'master' node
mongodb_login_host: 192.168.56.2
# mongodb_replication_params should be configured on each replica set node
mongodb_replication_params:
- { host_name: 192.168.56.2, host_port: "{{ mongodb_net_port }}", host_type: replica }
- {
host_name: 192.168.56.2,
host_port: "{{ mongodb_net_port }}",
host_type: replica,
}
# host_type can be replica(default) and arbiter
```
And inventory file for replica set:
```ini
[mongo_master]
192.158.56.2 mongodb_master=True # it is't a really master of MongoDB replica set,