From 49afc41464e897ef0380e1d025476c5e0892e370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 15:51:21 +0100 Subject: [PATCH 01/14] Test ci server cpu --- scripts/ynh_mongo_db__2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index e60c2c2..0dc07ee 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -322,10 +322,10 @@ ynh_install_mongo() { ynh_exec_err uname -a # crash mongod and display log + ynh_exec_err cat /proc/cpuinfo | grep --color avx /usr/bin/mongod --help 1> mongo-crash.txt 2>&1 ynh_exec_err ls -al /var/log ynh_exec_err cat -n 30 /var/log/syslog - ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60 # Integrate MongoDB service in YunoHost From 10c69a7b3bebfc20475b33050c6f36636076b776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 20 Jan 2023 09:03:48 +0100 Subject: [PATCH 02/14] Checking cpu before mongo installation --- scripts/upgrade | 2 -- scripts/ynh_mongo_db__2 | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index dcc12f7..fab7b44 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -128,8 +128,6 @@ ynh_install_java --java_version=$java_version --jdk_type=jre ynh_install_app_dependencies $pkg_dependencies -ynh_print_info --message="Debian release is $(ynh_get_debian_release)" - # Install the required version of Mongo ynh_install_mongo --mongo_version=$mongo_version diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 0dc07ee..91b287c 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -313,19 +313,20 @@ ynh_install_mongo() { mongo_version="${mongo_version:-$YNH_MONGO_VERSION}" ynh_print_info --message="Installing MongoDB Community Edition ..." - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $(ynh_get_debian_release)/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" + # Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64) + local mongo_debian_release=$(ynh_get_debian_release) + if [[ ""$(cat /proc/cpuinfo) == *"avx"* && "$mongo_debian_release" != "buster" ]]; then + mongo_debian_release="buster" + ynh_print_warn --message="Installing Mongo buster version to support your cpu." + fi + + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod # Make sure MongoDB is started and enabled -# systemctl enable $mongodb_servicename --quiet -# systemctl daemon-reload --quiet - ynh_exec_err uname -a + systemctl enable $mongodb_servicename --quiet + systemctl daemon-reload --quiet - # crash mongod and display log - ynh_exec_err cat /proc/cpuinfo | grep --color avx - /usr/bin/mongod --help 1> mongo-crash.txt 2>&1 - ynh_exec_err ls -al /var/log - ynh_exec_err cat -n 30 /var/log/syslog ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60 # Integrate MongoDB service in YunoHost From ae27e53f82455060e1c04899494c705206369e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 20 Jan 2023 20:30:23 +0100 Subject: [PATCH 03/14] Installing buster if needed --- check_process | 12 ++++++------ scripts/install | 2 +- scripts/ynh_mongo_db__2 | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/check_process b/check_process index bcdd8e3..ae4401e 100644 --- a/check_process +++ b/check_process @@ -8,18 +8,18 @@ public_key="dummy public key" is_public=1 ; Checks - pkg_linter=0 + pkg_linter=1 setup_sub_dir=1 - setup_root=0 + setup_root=1 setup_nourl=0 setup_private=0 - setup_public=0 + setup_public=1 upgrade=0 upgrade=0 from_commit=CommitHash - backup_restore=0 + backup_restore=1 multi_instance=0 - port_already_use=0 (8083) - change_url=0 + port_already_use=1 (8083) + change_url=1 ;;; Options Email=ger@shared.collin.best Notification=Down diff --git a/scripts/install b/scripts/install index f79fb3f..e94a4a1 100755 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ PORT_LIST=($port_ide $port_preview $port_project $port_data) ynh_script_progression --message="Installing dependencies..." --weight=1 # Install the required version of Java -# ynh_install_java --java_version=$java_version --jdk_type=jre +ynh_install_java --java_version=$java_version --jdk_type=jre ### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package. ### Those deb packages will be installed as dependencies of this package. diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 91b287c..574d54f 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -315,7 +315,8 @@ ynh_install_mongo() { ynh_print_info --message="Installing MongoDB Community Edition ..." # Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64) local mongo_debian_release=$(ynh_get_debian_release) - if [[ ""$(cat /proc/cpuinfo) == *"avx"* && "$mongo_debian_release" != "buster" ]]; then + + if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_debian_release" != "buster" ]]; then mongo_debian_release="buster" ynh_print_warn --message="Installing Mongo buster version to support your cpu." fi From 39d7218b50c0156e70f5d0daa06c0a3ae7a37b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 21 Jan 2023 09:43:47 +0100 Subject: [PATCH 04/14] Trying buster with mongo 5.0 --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 454c6ec..485d870 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= java_version=17 -mongo_version=6.0 +mongo_version=5.0 # Java dependencies used by the app will be installed through the Java helper pkg_dependencies="" From df4458291206b6d58871860af665c66093b84c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Mon, 23 Jan 2023 21:39:03 +0100 Subject: [PATCH 05/14] Error message when installing Mongo > 4.4 with wrong cpu --- scripts/_common.sh | 2 +- scripts/ynh_mongo_db__2 | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 485d870..b493918 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= java_version=17 -mongo_version=5.0 +mongo_version=4.4 # Java dependencies used by the app will be installed through the Java helper pkg_dependencies="" diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 574d54f..c475ef2 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -316,9 +316,8 @@ ynh_install_mongo() { # Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64) local mongo_debian_release=$(ynh_get_debian_release) - if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_debian_release" != "buster" ]]; then - mongo_debian_release="buster" - ynh_print_warn --message="Installing Mongo buster version to support your cpu." + if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then + ynh_print_error --message="The version of Mongo you're trying to install may not be compatible with your cpu (Missing avx instruction set)." fi ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" From cd6dda78adf8c288a05c593590fe62d5ae67a9c5 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 23 Jan 2023 20:39:08 +0000 Subject: [PATCH 06/14] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cb24ea..d4fed9c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Dont-code Services for YunoHost -[![Integration level](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Working status](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Working status](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) [![Install Dont-code Services with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=dont-code) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 4a89a34..0ed7a0d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Dont-code Services pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg) [![Installer Dont-code Services avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=dont-code) *[Read this readme in english.](./README.md)* From fd8a1d518ec8047b38c211cf47f02bcc14907082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Tue, 24 Jan 2023 23:45:34 +0100 Subject: [PATCH 07/14] Installing buster only for 4.4 --- scripts/ynh_mongo_db__2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index c475ef2..37bf15d 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -318,7 +318,11 @@ ynh_install_mongo() { if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then ynh_print_error --message="The version of Mongo you're trying to install may not be compatible with your cpu (Missing avx instruction set)." - fi + fi + if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" == "4.4" ]]; then + ynh_print_warn --message="Installing Mongo for Buster due to incompatible cpu." + mongo_debian_release=buster + fi ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod From 10b678ec302eaf0cd830ed63260ce322bdd031a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Wed, 25 Jan 2023 16:36:08 +0100 Subject: [PATCH 08/14] fixed bad helper function name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> --- scripts/ynh_mongo_db__2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 37bf15d..b2492a1 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -317,7 +317,7 @@ ynh_install_mongo() { local mongo_debian_release=$(ynh_get_debian_release) if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then - ynh_print_error --message="The version of Mongo you're trying to install may not be compatible with your cpu (Missing avx instruction set)." + ynh_print_err --message="The version of Mongo you're trying to install may not be compatible with your cpu (Missing avx instruction set)." fi if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" == "4.4" ]]; then ynh_print_warn --message="Installing Mongo for Buster due to incompatible cpu." From 8a1878033b2f252aa55505587d1614b6fcda0ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 26 Jan 2023 11:05:11 +0100 Subject: [PATCH 09/14] Installs the correct version of MongoDB --- scripts/_common.sh | 2 +- scripts/ynh_mongo_db__2 | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b493918..454c6ec 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= java_version=17 -mongo_version=4.4 +mongo_version=6.0 # Java dependencies used by the app will be installed through the Java helper pkg_dependencies="" diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index b2492a1..71e2d60 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -313,25 +313,25 @@ ynh_install_mongo() { mongo_version="${mongo_version:-$YNH_MONGO_VERSION}" ynh_print_info --message="Installing MongoDB Community Edition ..." - # Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64) local mongo_debian_release=$(ynh_get_debian_release) if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then - ynh_print_err --message="The version of Mongo you're trying to install may not be compatible with your cpu (Missing avx instruction set)." - fi - if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" == "4.4" ]]; then - ynh_print_warn --message="Installing Mongo for Buster due to incompatible cpu." + ynh_print_warn --message="Installing Mongo 4.4 as $mongo_version is not compatible with your cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)." + mongo_version="4.4" + fi + if [[ "$mongo_version" == "4.4" && "$mongo_debian_release" != "buster" ]]; then + ynh_print_warn --message="Switched to buster install as Mongo 4.4 is not compatible with $mongo_debian_release." mongo_debian_release=buster - fi + fi - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod # Make sure MongoDB is started and enabled systemctl enable $mongodb_servicename --quiet systemctl daemon-reload --quiet - ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60 + ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" # Integrate MongoDB service in YunoHost yunohost service add $mongodb_servicename --description="MongoDB daemon" --log="/var/log/mongodb/$mongodb_servicename.log" From b407be3055031f6499943d467e98e65b111fbe11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 26 Jan 2023 11:06:19 +0100 Subject: [PATCH 10/14] Upgraded services version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 673cfc0..216f2ed 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Install services and databases needed to support Dont-code platform", "fr": "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" }, - "version": "0.2~ynh2", + "version": "0.2~ynh3", "url": "https://dont-code.net", "upstream": { "license": "AGPL-3.0-or-later", From d80d65c131f86e1d723f89491a362c56eac97e47 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 26 Jan 2023 10:06:26 +0000 Subject: [PATCH 11/14] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d4fed9c..13c9a1b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Shipped version:** 0.2~ynh2 +**Shipped version:** 0.2~ynh3 **Demo:** https://dont-code.net/apps.html diff --git a/README_fr.md b/README_fr.md index 0ed7a0d..9e2a6d6 100644 --- a/README_fr.md +++ b/README_fr.md @@ -31,7 +31,7 @@ This Yunohost app installs the server part (services + mongo database) needed to - As well any documents or images uploaded by users will be backed up -**Version incluse :** 0.2~ynh2 +**Version incluse :** 0.2~ynh3 **Démo :** https://dont-code.net/apps.html From 817e77cea7ae961c4af20f57486da3e8a19c697b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 26 Jan 2023 11:48:04 +0100 Subject: [PATCH 12/14] Put back the old systemd command --- scripts/ynh_mongo_db__2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 71e2d60..05c3655 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -331,7 +331,7 @@ ynh_install_mongo() { systemctl enable $mongodb_servicename --quiet systemctl daemon-reload --quiet - ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" + ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="/var/log/mongodb/$mongodb_servicename.log" # Integrate MongoDB service in YunoHost yunohost service add $mongodb_servicename --description="MongoDB daemon" --log="/var/log/mongodb/$mongodb_servicename.log" From 96d4eecaa898c4e2bbde01020654c0066e9ee167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 26 Jan 2023 13:54:12 +0100 Subject: [PATCH 13/14] Added upgrade test --- check_process | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/check_process b/check_process index ae4401e..240a9c5 100644 --- a/check_process +++ b/check_process @@ -12,10 +12,10 @@ setup_sub_dir=1 setup_root=1 setup_nourl=0 - setup_private=0 + setup_private=1 setup_public=1 - upgrade=0 - upgrade=0 from_commit=CommitHash + upgrade=1 + upgrade=1 from_commit=7852cc4bf44ff20ee51fe35f3f53dc105e0f6d79 backup_restore=1 multi_instance=0 port_already_use=1 (8083) @@ -24,6 +24,6 @@ Email=ger@shared.collin.best Notification=Down ;;; Upgrade options - ; commit=CommitHash - name=Name and date of the commit. + ; commit=7852cc4bf44ff20ee51fe35f3f53dc105e0f6d79 + name=2023-01-07 - Added Ssh support for dev. manifest_arg=domain=DOMAIN&path=PATH&is_public=1&language=fr&admin=USER&password=pass&port=666& From 8cd684e48efc6f626818afae2d6591f81a3d8c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 26 Jan 2023 13:57:01 +0100 Subject: [PATCH 14/14] Back to install mongo shell --- scripts/ynh_mongo_db__2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 05c3655..e1c17a6 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -324,7 +324,7 @@ ynh_install_mongo() { mongo_debian_release=buster fi - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod # Make sure MongoDB is started and enabled