From d7ba98aca8bbd379659d6a7f840d92e32b49dbb4 Mon Sep 17 00:00:00 2001 From: Fernando Llaca Date: Thu, 9 May 2019 22:57:34 +0200 Subject: [PATCH] Dropped support of EOL version 3.2 of MongoDB. --- .travis.yml | 24 ------------------------ README.md | 16 ++++++++-------- defaults/main.yml | 1 - tasks/install.debian.yml | 4 ++-- vars/Debian.yml | 1 - vars/RedHat.yml | 2 -- vars/Ubuntu.yml | 1 - 7 files changed, 10 insertions(+), 39 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a6fa343..717d8b49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,10 +29,6 @@ env: DISTRIBUTION=ubuntu DIST_VERSION=16_04-builded MONGODB_VERSION=3.4 - - > - DISTRIBUTION=ubuntu - DIST_VERSION=16_04-builded - MONGODB_VERSION=3.2 - > DISTRIBUTION=ubuntu-upstart DIST_VERSION=14.04 @@ -45,10 +41,6 @@ env: DISTRIBUTION=ubuntu-upstart DIST_VERSION=14.04 MONGODB_VERSION=3.4 - - > - DISTRIBUTION=ubuntu-upstart - DIST_VERSION=14.04 - MONGODB_VERSION=3.2 - > DISTRIBUTION=debian DIST_VERSION=9-builded @@ -57,10 +49,6 @@ env: DISTRIBUTION=debian DIST_VERSION=9-builded MONGODB_VERSION=3.6 - - > - DISTRIBUTION=debian - DIST_VERSION=9-builded - MONGODB_VERSION=3.2 MONGODB_PACKAGE=mongodb - > DISTRIBUTION=debian @@ -74,10 +62,6 @@ env: DISTRIBUTION=debian DIST_VERSION=8-builded MONGODB_VERSION=3.4 - - > - DISTRIBUTION=debian - DIST_VERSION=8-builded - MONGODB_VERSION=3.2 - > DISTRIBUTION=centos DIST_VERSION=6-builded @@ -90,10 +74,6 @@ env: DISTRIBUTION=centos DIST_VERSION=6-builded MONGODB_VERSION=3.4 - - > - DISTRIBUTION=centos - DIST_VERSION=6-builded - MONGODB_VERSION=3.2 - > DISTRIBUTION=centos DIST_VERSION=7-builded @@ -106,10 +86,6 @@ env: DISTRIBUTION=centos DIST_VERSION=7-builded MONGODB_VERSION=3.4 - - > - DISTRIBUTION=centos - DIST_VERSION=7-builded - MONGODB_VERSION=3.2 services: - docker diff --git a/README.md b/README.md index 069bbde2..0646942d 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ MongoDB support matrix: | Distribution | < MongoDB 3.0 | MongoDB 3.2 | MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | | ------------ |:-------------:|:-----------:|:-----------:|:-----------:|:-----------:| -| Ubuntu 14.04 | :no_entry: | :white_check_mark:| :white_check_mark:| :white_check_mark:| :white_check_mark:| -| Ubuntu 16.04 | :no_entry: | :white_check_mark:| :white_check_mark:| :white_check_mark:| :white_check_mark:| -| Ubuntu 18.04 | :no_entry: | :x:| :x:| :white_check_mark:| :white_check_mark:| -| Debian 8.x | :no_entry: | :white_check_mark:| :white_check_mark:| :white_check_mark:| :white_check_mark:| -| Debian 9.x | :no_entry: | :white_check_mark:| :x:| :white_check_mark:| :white_check_mark:| -| RHEL 6.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark:| :white_check_mark:| -| RHEL 7.x | :no_entry: | :white_check_mark: | :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:| - :white_check_mark: - fully tested, should works fine - :interrobang: - maybe works, not tested @@ -34,7 +34,7 @@ MongoDB support matrix: mongodb_package: mongodb-org # You can control installed version via this param. -# Should be '3.2', '3.4', '3.6'. This role doesn't support MongoDB < 3.2. +# Should be '3.4', '3.6' or '4.0'. This role doesn't support MongoDB < 3.4. # I will recommend you to use latest version of MongoDB. mongodb_version: "3.6" diff --git a/defaults/main.yml b/defaults/main.yml index 7e3b5646..5ca509dd 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,6 @@ mongodb_package: mongodb-org mongodb_version: "3.6" mongodb_apt_keyserver: keyserver.ubuntu.com mongodb_apt_key_id: - "3.2": "EA312927" "3.4": "0C49F3730359A14518585931BC711F9BA15703C6" "3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5" "4.0": "9DA31620334BD75D9DCB49F368818C72E52529D4" diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index 8c2ab410..5e121db1 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -19,7 +19,7 @@ - name: Fail when used wrong mongodb_version variable with Debian Stretch fail: - msg: "mongodb_version variable should be '3.2' or '3.6' or '4.0' for Debian Stretch" + msg: "mongodb_version variable should be '3.6' or '4.0' for Debian Stretch" when: (mongodb_package == 'mongodb-org' and (mongodb_version is not defined or mongodb_repository[mongodb_major_version] is not defined @@ -34,7 +34,7 @@ - name: Fail when used wrong mongodb_version variable fail: - msg: "mongodb_version variable should be '3.2', '3.4', '3.6' or '4.0'" + msg: "mongodb_version variable should be '3.4', '3.6' or '4.0'" when: (mongodb_package == 'mongodb-org' and (mongodb_version is not defined or mongodb_repository[mongodb_major_version] is not defined)) diff --git a/vars/Debian.yml b/vars/Debian.yml index 58041adc..f177ee57 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,6 +1,5 @@ --- mongodb_repository: - "3.2": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/3.2 main" "3.4": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/3.4 main" "3.6": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/3.6 main" "4.0": "deb http://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.0 main" diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 87229e10..0b01502b 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -1,13 +1,11 @@ --- mongodb_repository: - "3.2": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/$basearch/" "3.4": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/$basearch/" "3.6": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/$basearch/" "4.0": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/$basearch/" mongodb_repository_gpgkey: - "3.2": "https://www.mongodb.org/static/pgp/server-3.2.asc" "3.4": "https://www.mongodb.org/static/pgp/server-3.4.asc" "3.6": "https://www.mongodb.org/static/pgp/server-3.6.asc" "4.0": "https://www.mongodb.org/static/pgp/server-4.0.asc" diff --git a/vars/Ubuntu.yml b/vars/Ubuntu.yml index f4596a3b..084776c3 100644 --- a/vars/Ubuntu.yml +++ b/vars/Ubuntu.yml @@ -1,6 +1,5 @@ --- mongodb_repository: - "3.2": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.2 multiverse" "3.4": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.4 multiverse" "3.6": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.6 multiverse" "4.0": "deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/4.0 multiverse"