Skip to content

Commit b2630f7

Browse files
committed
Try global env variables. Exclude mongodb 3.4 version
1 parent bbd8ad8 commit b2630f7

File tree

8 files changed

+17
-19
lines changed

8 files changed

+17
-19
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ language: python
66
python:
77
- "3.6"
88
env:
9+
global:
10+
MONGODB_VERSION=3.6
11+
MONGODB_VERSION=4.0
12+
MONGODB_VERSION=4.2
913
# - >
1014
# DISTRIBUTION=ubuntu
1115
# DIST_VERSION=18_04-builded

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Ansible role which manages [MongoDB](http://www.mongodb.org/).
1010

1111
MongoDB support matrix:
1212

13-
| Distribution | < MongoDB 3.2 | MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 |
14-
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | :----------------: |
15-
| Ubuntu 14.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
16-
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
17-
| Ubuntu 18.04 | :no_entry: | :x: | :x: | :white_check_mark: | :white_check_mark: |
18-
| Debian 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
19-
| Debian 9.x | :no_entry: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
20-
| RHEL 6.x | :no_entry: | :white_check_mark: | :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: |
22-
| Amazon Linux 2 | :no_entry: | :white_check_mark: | :x: | :white_check_mark: | :white_check_mark: |
13+
| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 |
14+
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: |
15+
| Ubuntu 14.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :x: |
16+
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
17+
| Ubuntu 18.04 | :no_entry: | :x: | :white_check_mark: | :white_check_mark: |
18+
| Debian 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :x: |
19+
| Debian 9.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
20+
| RHEL 6.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
21+
| RHEL 7.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
22+
| Amazon Linux 2 | :no_entry: | :x: | :white_check_mark: | :white_check_mark: |
2323

2424
- :white_check_mark: - fully tested, should works fine
2525
- :interrobang: - maybe works, not tested
@@ -35,7 +35,7 @@ MongoDB support matrix:
3535
mongodb_package: mongodb-org
3636

3737
# You can control installed version via this param.
38-
# Should be '3.4', '3.6', '4.0' or '4.2'. This role doesn't support MongoDB < 3.4.
38+
# Should be '3.6', '4.0' or '4.2'. This role doesn't support MongoDB < 3.6.
3939
# I will recommend you to use latest version of MongoDB.
4040
mongodb_version: "4.2"
4141

defaults/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ mongodb_package_state: present
55
mongodb_version: "4.2"
66
mongodb_apt_keyserver: keyserver.ubuntu.com
77
mongodb_apt_key_id:
8-
"3.4": "0C49F3730359A14518585931BC711F9BA15703C6"
98
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
109
"4.0": "9DA31620334BD75D9DCB49F368818C72E52529D4"
1110
"4.2": "E162F504A20CDF15827F718D4B7C549A058F8B6B"
@@ -126,4 +125,4 @@ mongodb_root_backup_password: passw0rd
126125
mongodb_set_parameters:
127126

128127
# custom config options
129-
mongodb_config:
128+
mongodb_config:

tasks/install.debian.yml

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

3434
- name: Fail when used wrong mongodb_version variable
3535
fail:
36-
msg: "mongodb_version variable should be '3.4', '3.6' or '4.0' or '4.2'"
36+
msg: "mongodb_version variable should be '3.6' or '4.0' or '4.2'"
3737
when: (mongodb_package == 'mongodb-org' and
3838
(mongodb_version is not defined
3939
or mongodb_repository[mongodb_major_version] is not defined))

vars/Amazon.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ mongodb_repository:
33
"4.2": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.2/x86_64/"
44
"4.0": "https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.0/x86_64/"
55
"3.6": "https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/"
6-
"3.4": "https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/"
76

87
mongodb_repository_gpgkey:
98
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"

vars/Debian.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
mongodb_repository:
3-
"3.4": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/3.4 main"
43
"3.6": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/3.6 main"
54
"4.0": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.0 main"
65
"4.2": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.2 main"

vars/RedHat.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
mongodb_repository:
3-
"3.4": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/$basearch/"
43
"3.6": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/$basearch/"
54
"4.0": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/$basearch/"
65
"4.2": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/$basearch/"
76

87
mongodb_repository_gpgkey:
9-
"3.4": "https://www.mongodb.org/static/pgp/server-3.4.asc"
108
"3.6": "https://www.mongodb.org/static/pgp/server-3.6.asc"
119
"4.0": "https://www.mongodb.org/static/pgp/server-4.0.asc"
1210
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"

vars/Ubuntu.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
mongodb_repository:
3-
"3.4": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.4 multiverse"
43
"3.6": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.6 multiverse"
54
"4.0": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/4.0 multiverse"
65
"4.2": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/4.2 multiverse"

0 commit comments

Comments
 (0)