mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 11:32:16 +00:00
bug6054: adjusted setup scripts so they install MongoDB 7 instead of 6
This commit is contained in:
1 parent
482eef9551
commit
8b380f8fbc
4 files changed
+9
-9
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ else
|
||||
# build-crontab
|
||||
. imageupgrade_functions.sh
|
||||
# Install MongoDB 5.0 and configure as replica set "live"
|
||||
setup_mongo_6_0_on_AL2023
|
||||
setup_mongo_7_0_on_AL2023
|
||||
build_crontab_and_setup_files central_mongo_setup
|
||||
# obtain root SSH key from key vault:
|
||||
setup_keys "central_mongo_setup"
|
||||
|
||||
@@ -27,7 +27,7 @@ else
|
||||
# build-crontab
|
||||
. imageupgrade_functions.sh
|
||||
# Install MongoDB 5.0 and configure as replica set "live"
|
||||
setup_mongo_6_0_on_AL2023
|
||||
setup_mongo_7_0_on_AL2023
|
||||
build_crontab_and_setup_files mongo_instance_setup
|
||||
# obtain root SSH key from key vault:
|
||||
setup_keys "mongo_instance_setup"
|
||||
|
||||
@@ -452,15 +452,15 @@ setup_swap() {
|
||||
popd
|
||||
}
|
||||
|
||||
setup_mongo_6_0_on_AL2023() {
|
||||
# Install MongoDB 6.0 on Amazon Linux 2023
|
||||
sudo su - -c "cat << EOF >/etc/yum.repos.d/mongodb-org.6.0.repo
|
||||
[mongodb-org-6.0]
|
||||
setup_mongo_7_0_on_AL2023() {
|
||||
# Install MongoDB 7.0 on Amazon Linux 2023
|
||||
sudo su - -c "cat << EOF >/etc/yum.repos.d/mongodb-org.7.0.repo
|
||||
[mongodb-org-7.0]
|
||||
name=MongoDB Repository
|
||||
baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/6.0/x86_64/
|
||||
baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/7.0/x86_64/
|
||||
gpgcheck=1
|
||||
enabled=1
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
|
||||
gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc
|
||||
EOF
|
||||
"
|
||||
sudo yum -y update
|
||||
|
||||
@@ -33,7 +33,7 @@ else
|
||||
# build-crontab
|
||||
. imageupgrade_functions.sh
|
||||
# Install MongoDB 5.0 and configure as replica set "replica"
|
||||
setup_mongo_6_0_on_AL2023
|
||||
setup_mongo_7_0_on_AL2023
|
||||
sudo su - -c "cat << EOF >>/etc/mongod.conf
|
||||
replication:
|
||||
replSetName: replica
|
||||
|
||||
Reference in new issue
Block a user