Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

PLAT-139 Use OpsManager version 3.4 instead of 2.0 #7

Merged
merged 2 commits into from
Jun 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions mongodb/mongodb/templates/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ EOF
service mongod stop
service mongod start

curl -k -OL https://downloads.mongodb.com/on-prem-mms/deb/mongodb-mms_2.0.2.337-1_x86_64.deb
DEBIAN_FRONTEND=noninteractive dpkg --force-confold --install mongodb-mms_2.0.2.337-1_x86_64.deb
curl -k -OL https://downloads.mongodb.com/on-prem-mms/deb/mongodb-mms_3.4.5.424-1_x86_64.deb
DEBIAN_FRONTEND=noninteractive dpkg --force-confold --install mongodb-mms_3.4.5.424-1_x86_64.deb

cat << EOF > ${mongodb_basedir}/mms/conf/conf-mms.properties
mongo.mongoUri=mongodb://mms-admin:${mms_password}@opsmanager-node-1.universe.com,opsmanager-node-2.universe.com,opsmanager-node-3.universe.com/?replicaSet=${mongodb_conf_replsetname}&maxPoolSize=150
Expand Down Expand Up @@ -179,8 +179,8 @@ fi
# Automation Agent (requires OpsManager available)
#
if [ "${role_node}" == "true" ]; then
curl -k -OL http://${opsmanager_subdomain}:8080/download/agent/automation/mongodb-mms-automation-agent-manager_2.5.16.1552-1_amd64.deb
DEBIAN_FRONTEND=noninteractive dpkg --install mongodb-mms-automation-agent-manager_2.5.16.1552-1_amd64.deb
curl -k -OL http://${opsmanager_subdomain}:8080/download/agent/automation/mongodb-mms-automation-agent-manager_3.2.12.2107-1_amd64.deb
Copy link
Contributor Author

@exAspArk exAspArk Jun 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adammeghji I re-terraformed all opsmanager nodes with these changes.

But role_node is enabled for mongodb data nodes, I updated the mongodb-mms-automation-agent-manager package manually on each staging / production mongodb node for now. It was faster, safer and easier than terraforming each node one by one (I'm sure it'll work too though).

DEBIAN_FRONTEND=noninteractive dpkg --install mongodb-mms-automation-agent-manager_3.2.12.2107-1_amd64.deb

mkdir -p ${mongodb_basedir}
chown mongodb:mongodb ${mongodb_basedir}
Expand Down Expand Up @@ -243,7 +243,7 @@ EOF
sed -i "s/\/etc\/default\/mongod/\/etc\/default\/mongod-backup/g" /etc/init/mongod-backup.conf
service mongod-backup start

curl -k -OL http://${opsmanager_subdomain}:8080/download/agent/backup/mongodb-mms-backup-agent_latest_amd64.deb
dpkg --install mongodb-mms-backup-agent_latest_amd64.deb
curl -k -OL http://${opsmanager_subdomain}:8080/download/agent/backup/mongodb-mms-backup-agent_5.0.7.494-1_amd64.deb
dpkg --install mongodb-mms-backup-agent_5.0.7.494-1_amd64.deb
service mongodb-mms-backup-agent start
fi