Skip to content

Commit

Permalink
Story #11567: Fix mongo-tools for AlmaLinux. (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiooDev authored Oct 23, 2023
1 parent 571cf12 commit 6f1272c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
18 changes: 1 addition & 17 deletions deployment/roles/mongo_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,13 @@
name:
- mongodb-org-shell
- mongodb-mongosh
- mongodb-org-tools
- mongodb-database-tools
state: present
register: result
retries: "{{ packages_install_retries_number }}"
until: result is succeeded
delay: "{{ packages_install_retries_delay }}"
when: ansible_distribution == "CentOS" or ansible_distribution == "Debian"

### WIP: Temporary solution
## mongodb-org-tools is currently incompatible with AlmaLinux.
## compat-openssl10 is mandatory to allow usage of SSLv1.0 with mongodb.
- name: Install common mongodb packages
package:
name:
- compat-openssl10
- mongodb-org-shell
- mongodb-mongosh
state: present
register: result
retries: "{{ packages_install_retries_number }}"
until: result is succeeded
delay: "{{ packages_install_retries_delay }}"
when: ansible_distribution == "AlmaLinux"
### System tuning best practices ####

# next steps in order to disable Transparent HugePages
Expand Down
10 changes: 8 additions & 2 deletions deployment/roles/mongodb_upgrade_package/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
---

# Upgrade mongo packages
- name: Update mongosh and tools packages
- name: Remove deprecated mongodb packages
package:
name:
- mongodb-org-tools
- mongodb-org-database-tools-extra
state: absent

- name: Update common mongodb packages
package:
name:
- mongodb-mongosh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
name:
- "mongodb-org-server-{{ mongo_version }}"
- "mongodb-org-shell-{{ mongo_version }}"
- "mongodb-org-tools-{{ mongo_version }}"
state: present
update_cache: yes # make sure cache is up to date for upgrade
register: result
Expand All @@ -62,7 +61,6 @@
name:
- "mongodb-org-server={{ mongo_version }}"
- "mongodb-org-shell={{ mongo_version }}"
- "mongodb-org-tools={{ mongo_version }}"
state: present
update_cache: yes # make sure cache is up to date for upgrade
register: result
Expand Down

0 comments on commit 6f1272c

Please sign in to comment.