Skip to content

Commit ffadd43

Browse files
committed
Enable MongoDB 5.0 support and set as default
1 parent b2bb33d commit ffadd43

File tree

12 files changed

+35
-21
lines changed

12 files changed

+35
-21
lines changed

.github/workflows/amazonlinux2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
molecule_distro:
1717
- amazonlinux2
1818
mongodb_version:
19+
- '5.0'
1920
- '4.4'
2021
- '4.2'
2122
- '4.0'

.github/workflows/centos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
molecule_distro:
16+
molecule_distro:
1717
- centos7
1818
- centos8
1919
mongodb_version:
20+
- '5.0'
2021
- '4.4'
2122
- '4.2'
2223
- '4.0'

.github/workflows/debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- debian9
1818
- debian10
1919
mongodb_version:
20+
- '5.0'
2021
- '4.4'
2122
- '4.2'
2223
- '4.0'

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
include:
2424
- molecule_distro: ubuntu2004
2525
mongodb_version: '4.4'
26+
- molecule_distro: ubuntu2004
27+
mongodb_version: '5.0'
2628
env:
2729
MONGODB_VERSION: ${{ matrix.mongodb_version }}
2830
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ Ansible role to install and manage [MongoDB](http://www.mongodb.org/).
1111

1212
MongoDB support matrix:
1313

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: |
14+
| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 | MongoDB 4.4 | MongoDB 5.0 |
15+
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | :----------------: | :----------------: |
16+
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
17+
| Ubuntu 18.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
18+
| Ubuntu 20.04 | :no_entry: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
19+
| Debian 9.x | :no_entry: | :white_check_mark: | :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: | :white_check_mark: |
21+
| RHEL 7.x | :no_entry: | :white_check_mark: | :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: | :white_check_mark: |
23+
| Amazon Linux 2 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
2424

2525
- :white_check_mark: - fully tested
2626
- :x: - don't have official support
@@ -38,7 +38,7 @@ mongodb_package: mongodb-org
3838
# `mongodb_version` variable sets version of MongoDB.
3939
# Should be '3.6', '4.0', '4.2' or '4.4'. This role doesn't support MongoDB < 3.6.
4040
# I would recommend you to use the latest version of MongoDB.
41-
mongodb_version: "4.4"
41+
mongodb_version: "5.0"
4242

4343
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
4444
mongodb_pymongo_pip_version: 3.6.1 # Choose PyMong version to install from pip. If not set use latest

defaults/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
mongodb_package: mongodb-org
44
mongodb_package_state: present
5-
mongodb_version: "4.4"
5+
mongodb_version: "5.0"
66
mongodb_apt_key_from_url: false
77
mongodb_apt_keyserver: 'hkp://keyserver.ubuntu.com:80'
88
mongodb_apt_key_id:
99
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
1010
"4.0": "9DA31620334BD75D9DCB49F368818C72E52529D4"
1111
"4.2": "E162F504A20CDF15827F718D4B7C549A058F8B6B"
1212
"4.4": "20691eec35216c63caf66ce1656408e390cfb1f5"
13+
"5.0": "F5679A222C647C87527C2F8CB00A0BD1E2C63C11"
14+
1315
mongodb_apt_key_url:
1416
"3.6": "https://www.mongodb.org/static/pgp/server-3.6.asc"
1517
"4.0": "https://www.mongodb.org/static/pgp/server-4.0.asc"
1618
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"
1719
"4.4": "https://www.mongodb.org/static/pgp/server-4.4.asc"
20+
"5.0": "https://www.mongodb.org/static/pgp/server-5.0.asc"
1821

1922
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
2023
mongodb_pymongo_pip_version: 3.11.3

molecule/cluster/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ provisioner:
4646
converge: ${MOLECULE_PLAYBOOK:-../default/converge.yml}
4747
prepare: ${MOLECULE_PLAYBOOK:-../default/prepare.yml}
4848
env:
49-
MONGODB_VERSION: ${MONGODB_VERSION:-4.4}
49+
MONGODB_VERSION: ${MONGODB_VERSION:-5.0}
5050
MONGODB_PACKAGE: ${MONGODB_PACKAGE:-mongodb-org}
5151
AUTH_STATE: ${AUTH_STATE:-disabled}
5252
REPLICASET: ${REPLICASET:-testrs}

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ provisioner:
2828
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
2929
prepare: ${MOLECULE_PLAYBOOK:-prepare.yml}
3030
env:
31-
MONGODB_VERSION: ${MONGODB_VERSION:-4.4}
31+
MONGODB_VERSION: ${MONGODB_VERSION:-5.0}
3232
MONGODB_PACKAGE: ${MONGODB_PACKAGE:-mongodb-org}
3333
AUTH_STATE: ${AUTH_STATE:-disabled}
3434
inventory:

vars/Amazon.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
22
mongodb_repository:
3-
"4.4": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.4/x86_64/"
4-
"4.2": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.2/x86_64/"
5-
"4.0": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.0/x86_64/"
63
"3.6": "https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/"
4+
"4.0": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.0/x86_64/"
5+
"4.2": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.2/x86_64/"
6+
"4.4": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.4/x86_64/"
7+
"5.0": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/"
78

89
mongodb_repository_gpgkey:
9-
"4.4": "https://www.mongodb.org/static/pgp/server-4.4.asc"
10-
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"
11-
"4.0": "https://www.mongodb.org/static/pgp/server-4.0.asc"
1210
"3.6": "https://www.mongodb.org/static/pgp/server-3.6.asc"
11+
"4.0": "https://www.mongodb.org/static/pgp/server-4.0.asc"
12+
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"
13+
"4.4": "https://www.mongodb.org/static/pgp/server-4.4.asc"
14+
"5.0": "https://www.mongodb.org/static/pgp/server-5.0.asc"
1315

1416
mongodb_pidfile_path: "{{ '/var/run/mongodb/mongod.pid' if ('mongodb-org' in mongodb_package) else '' }}"
1517

vars/Debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ mongodb_repository:
44
"4.0": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.0 main"
55
"4.2": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.2 main"
66
"4.4": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.4 main"
7+
"5.0": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/5.0 main"
78

89
mongodb_pymongo_package: "{{ 'python3-pymongo' if ansible_facts['python'].version.major == 3 else 'python-pymongo' }}"
910
mongodb_pymongo_deps:

0 commit comments

Comments
 (0)