Skip to content

Commit 6cf617c

Browse files
committed
Added support of MongoDB 3.6 for Debian Stretch
1 parent 4cceeef commit 6cf617c

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ env:
3131
DISTRIBUTION=ubuntu-upstart
3232
DIST_VERSION=14.04
3333
MONGODB_VERSION=3.2
34+
- >
35+
DISTRIBUTION=debian
36+
DIST_VERSION=9-builded
37+
MONGODB_VERSION=3.6
3438
- >
3539
DISTRIBUTION=debian
3640
DIST_VERSION=9-builded
@@ -71,9 +75,6 @@ env:
7175
DISTRIBUTION=centos
7276
DIST_VERSION=7-builded
7377
MONGODB_VERSION=3.2
74-
# - >
75-
# distribution=debian
76-
# version=7
7778
7879
services:
7980
- docker

tasks/install.debian.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@
1111
mongodb_is_systemd: "{{ sbin_init.stat.islnk is defined and sbin_init.stat.islnk }}"
1212
mongodb_major_version: "{{ mongodb_version[0:3] }}"
1313

14-
- name: Overwrite mongodb_version especially for Debian 9
15-
set_fact:
16-
mongodb_major_version: "3.2"
17-
when: ansible_distribution_release == "stretch"
18-
1914
- name: Add APT key
2015
apt_key:
2116
keyserver: "{{ mongodb_apt_keyserver }}"
2217
id: "{{ mongodb_apt_key_id[mongodb_major_version] }}"
2318
when: mongodb_package == 'mongodb-org'
2419

20+
- name: Fail when used wrong mongodb_version variable with Debian Stretch
21+
fail:
22+
msg: "mongodb_version variable should be '3.2' or '3.6' for Debian Stretch"
23+
when: (mongodb_package == 'mongodb-org' and
24+
(mongodb_version is not defined
25+
or mongodb_repository[mongodb_major_version] is not defined
26+
or mongodb_version != "3.6"))
27+
2528
- name: Fail when used wrong mongodb_version variable
2629
fail:
27-
msg: "mongodb_version variable should be '2.6', '3.0' or '3.2'"
30+
msg: "mongodb_version variable should be '3.2', '3.4' or '3.6'"
2831
when: (mongodb_package == 'mongodb-org' and
2932
(mongodb_version is not defined
3033
or mongodb_repository[mongodb_major_version] is not defined))

tests/scripts/before_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- mode: sh; -*-
33

44
# File: before_install.sh
5-
# Time-stamp: <2018-02-15 15:54:06>
5+
# Time-stamp: <2018-07-12 18:05:37>
66
# Copyright (C) 2018 Sergei Antipov
77
# Description:
88

vars/stretch.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)