Skip to content

Commit fc41e73

Browse files
committed
Merge branch 'master' of https://github.com/UnderGreen/ansible-role-mongodb into manage_unit_systemd
2 parents 137e4f1 + c582f8a commit fc41e73

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ Ansible role which manages [MongoDB](http://www.mongodb.org/).
66
- Configure mongodb users
77
- Configure replication
88
- Provide handlers for restart and reload;
9-
- Setup MMS authomation agent;
9+
- Setup MMS automation agent;
1010

1111
MongoDB support matrix:
1212

1313
| Distribution | < MongoDB 3.2 | MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 |
1414
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | :----------------: |
1515
| Ubuntu 14.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
1616
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
17-
| Ubuntu 18.04 | :no_entry: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
17+
| Ubuntu 18.04 | :no_entry: | :x: | :x: | :white_check_mark: | :white_check_mark: |
1818
| Debian 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
1919
| Debian 9.x | :no_entry: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
2020
| RHEL 6.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
2121
| 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: | :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: |
2323

2424
- :white_check_mark: - fully tested, should works fine
2525
- :interrobang: - maybe works, not tested
@@ -35,9 +35,9 @@ 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' or '4.0'. This role doesn't support MongoDB < 3.4.
38+
# Should be '3.4', '3.6', '4.0' or '4.2'. This role doesn't support MongoDB < 3.4.
3939
# I will recommend you to use latest version of MongoDB.
40-
mongodb_version: "3.6"
40+
mongodb_version: "4.2"
4141

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

tasks/install.amazon.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,27 @@
1717
yum:
1818
name: "{{ mongodb_package }}{% if (mongodb_version | length > 3) %}={{ mongodb_version }}{% endif %}"
1919
state: "{{ mongodb_package_state }}"
20+
lock_timeout: "{{ yum_lock_timeout }}"
2021

2122
- name: Install numactl package
2223
yum:
2324
name: numactl
2425
state: present
26+
lock_timeout: "{{ yum_lock_timeout }}"
2527

2628
- name: Install PyMongo package
2729
yum:
2830
name: python-pymongo
2931
state: present
32+
lock_timeout: "{{ yum_lock_timeout }}"
3033
when: not mongodb_pymongo_from_pip
3134

3235
- name: Install PIP
3336
yum:
3437
name:
3538
- python-devel
3639
- python-pip
40+
lock_timeout: "{{ yum_lock_timeout }}"
3741
when: mongodb_pymongo_from_pip
3842

3943
- name: Install PyMongo from PIP

tasks/install.redhat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,27 @@
2323
yum:
2424
name: "{{ mongodb_package }}{% if (mongodb_version | length > 3) %}={{ mongodb_version }}{% endif %}"
2525
state: "{{ mongodb_package_state }}"
26+
lock_timeout: "{{ yum_lock_timeout }}"
2627

2728
- name: Install numactl package
2829
yum:
2930
name: numactl
3031
state: present
32+
lock_timeout: "{{ yum_lock_timeout }}"
3133

3234
- name: Install PyMongo package
3335
yum:
3436
name: python-pymongo
3537
state: present
38+
lock_timeout: "{{ yum_lock_timeout }}"
3639
when: not mongodb_pymongo_from_pip
3740

3841
- name: Install PIP
3942
yum:
4043
name:
4144
- python-devel
4245
- python-pip
46+
lock_timeout: "{{ yum_lock_timeout }}"
4347
when: mongodb_pymongo_from_pip | bool
4448

4549
- name: Install PyMongo from PIP

vars/Amazon.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ mongodb_repository_gpgkey:
1111
"3.6": "https://www.mongodb.org/static/pgp/server-3.6.asc"
1212

1313
mongodb_pidfile_path: "{{ '/var/run/mongodb/mongod.pid' if ('mongodb-org' in mongodb_package) else '' }}"
14+
15+
yum_lock_timeout: 180

vars/RedHat.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
mongodb_repository:
43
"3.4": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/$basearch/"
54
"3.6": "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/$basearch/"
@@ -13,3 +12,5 @@ mongodb_repository_gpgkey:
1312
"4.2": "https://www.mongodb.org/static/pgp/server-4.2.asc"
1413

1514
mongodb_pidfile_path: "{{ '/var/run/mongodb/mongod.pid' if ('mongodb-org' in mongodb_package) else '' }}"
15+
16+
yum_lock_timeout: 180

0 commit comments

Comments
 (0)