Skip to content

Commit 7c41e3d

Browse files
committed
Update support matrix and properly test availability of NUMA
1 parent 169b039 commit 7c41e3d

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# Ansible role for MongoDB
1+
# Ansible role for MongoDB
22
![Centos](https://github.com/UnderGreen/ansible-role-mongodb/actions/workflows/centos.yml/badge.svg) ![Debian](https://github.com/UnderGreen/ansible-role-mongodb/actions/workflows/debian.yml/badge.svg)
33

4-
Ansible role which manages [MongoDB](http://www.mongodb.org/).
4+
Ansible role to install and manage [MongoDB](http://www.mongodb.org/).
55

6-
- Install and configure the MongoDB;
6+
- Install and configure the MongoDB
77
- Configure mongodb users
8+
- Configure authentication
89
- Configure replication
9-
- Provide handlers for restart and reload;
1010
- Setup MMS automation agent;
1111

1212
MongoDB support matrix:
1313

14-
| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 |
15-
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: |
16-
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
17-
| Ubuntu 18.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
18-
| Debian 9.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
19-
| Debian 10.x | :no_entry: | :x: | :x: | :white_check_mark: |
20-
| RHEL 7.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
21-
| RHEL 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
22-
| Amazon Linux 2 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
23-
24-
- :white_check_mark: - fully tested, should works fine
25-
- :interrobang: - maybe works, not tested
14+
| Distribution | < MongoDB 3.4 | MongoDB 3.6 | MongoDB 4.0 | MongoDB 4.2 | MongoDB 4.4 |
15+
| -------------- | :-----------: | :----------------: | :----------------: | :----------------: | :----------------: |
16+
| Ubuntu 16.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
17+
| Ubuntu 18.04 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
18+
| Ubuntu 20.04 | :no_entry: | :x: | :x: | :x: | :white_check_mark: |
19+
| Debian 9.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
20+
| Debian 10.x | :no_entry: | :x: | :x: | :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+
| RHEL 8.x | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
23+
| Amazon Linux 2 | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
24+
25+
- :white_check_mark: - fully tested
2626
- :x: - don't have official support
2727
- :no_entry: - MongoDB has reached EOL
2828

molecule/default/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
remote_user: root
44
become: yes
55
tasks:
6-
- name: Install prerequisite packages for molecule testing for Debian/Ubuntu >= 18
6+
- name: Install prerequisite packages for molecule testing on Debian or Ubuntu >= 18
77
apt:
88
update_cache: true
99
name:

tasks/install.debian.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@
3838
update_cache: true
3939

4040
- name: Check if NUMA is available on host
41-
shell: "set -o pipefail && find /proc -name numa_maps | wc -l"
42-
args:
43-
executable: /bin/bash
44-
register: numa_number_lines
41+
command: "ls -1 /proc/1/numa_maps"
42+
register: numa_available
43+
ignore_errors: true
4544
changed_when: false
4645
check_mode: no
4746
when: mongodb_use_numa | bool
4847

4948
- name: Don't use NUMA if it is unavailable on host
5049
set_fact:
5150
mongodb_use_numa: false
52-
when: (mongodb_use_numa | bool and numa_number_lines.stdout | int == 0)
51+
when: (mongodb_use_numa | bool and numa_available.rc != 0)
5352

5453
- name: Install numactl package
5554
apt:
@@ -81,7 +80,8 @@
8180
notify:
8281
- reload systemd
8382

84-
- name: Forcefully set mongodb_pymongo_from_pip to true on Debian 10
83+
# Workaround for the idempotence issue on Debian 10 with pip module
84+
- name: Forcefully set mongodb_pymongo_from_pip to false on Debian 10
8585
set_fact:
8686
mongodb_pymongo_from_pip: false
8787
when:

0 commit comments

Comments
 (0)