Skip to content

Commit 3d26919

Browse files
committed
Add support of MongoDB 4.4
1 parent 1f2f47e commit 3d26919

File tree

14 files changed

+26
-12
lines changed

14 files changed

+26
-12
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+
- '4.4'
1920
- '4.2'
2021
- '4.0'
2122
- '3.6'

.github/workflows/centos.yml

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

.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+
- '4.4'
2021
- '4.2'
2122
- '4.0'
2223
- '3.6'

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- '4.2'
2121
- '4.0'
2222
- '3.6'
23+
include:
24+
- molecule_distro: ubuntu2004
25+
mongodb_version: '4.4'
2326
env:
2427
MONGODB_VERSION: ${{ matrix.mongodb_version }}
2528
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ MongoDB support matrix:
2929
#### Variables
3030

3131
```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.
3536
mongodb_package: mongodb-org
3637

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"
4142

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

defaults/main.yml

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

33
mongodb_package: mongodb-org
44
mongodb_package_state: present
5-
mongodb_version: "4.2"
5+
mongodb_version: "4.4"
66
mongodb_apt_keyserver: keyserver.ubuntu.com
77
mongodb_apt_key_id:
88
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
99
"4.0": "9DA31620334BD75D9DCB49F368818C72E52529D4"
1010
"4.2": "E162F504A20CDF15827F718D4B7C549A058F8B6B"
11+
"4.4": "20691eec35216c63caf66ce1656408e390cfb1f5"
1112

1213
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
1314
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.2}
49+
MONGODB_VERSION: ${MONGODB_VERSION:-4.4}
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.2}
31+
MONGODB_VERSION: ${MONGODB_VERSION:-4.4}
3232
MONGODB_PACKAGE: ${MONGODB_PACKAGE:-mongodb-org}
3333
AUTH_STATE: ${AUTH_STATE:-disabled}
3434
inventory:

tasks/install.debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
- name: Fail when used wrong mongodb_version variable
1919
fail:
20-
msg: "mongodb_version variable should be '3.6' or '4.0' or '4.2'"
20+
msg: "mongodb_version variable should be '3.6' or '4.0', '4.2' or '4.4'"
2121
when: (mongodb_package == 'mongodb-org' and
2222
(mongodb_version is not defined
2323
or mongodb_repository[mongodb_major_version] is not defined))

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
when: mongodb_replication_replset | length > 0
4444
tags: [mongodb]
4545

46-
- name: Check where admin user already exists
46+
- name: Check whether admin user is already exist
4747
command: >
4848
mongo --quiet {{ '--ssl --host ' + mongodb_net_ssl_host if mongodb_net_ssl_mode == 'requireSSL' else '' }} -u {{ mongodb_user_admin_name }} \
4949
-p {{ mongodb_user_admin_password }} --port {{ mongodb_net_port }} --eval 'db.version()' admin

0 commit comments

Comments
 (0)