Skip to content

Instantly share code, notes, and snippets.

@nfhipona
Created June 10, 2020 08:07
Show Gist options
  • Save nfhipona/4e3820bd66bd0e71e11cd155b7c190fe to your computer and use it in GitHub Desktop.
Save nfhipona/4e3820bd66bd0e71e11cd155b7c190fe to your computer and use it in GitHub Desktop.
Install New MongoDB Agent

Download the agent

curl -OL https://cloud.mongodb.com/download/agent/automation/mongodb-mms-automation-agent-manager_10.14.6.6374-1_amd64.ubuntu1604.deb

and install the package.

sudo dpkg -i mongodb-mms-automation-agent-manager_10.14.6.6374-1_amd64.ubuntu1604.deb

Open the config file

sudo vi /etc/mongodb-mms/automation-agent.config

and enter your API key, and Project ID as shown below.

mmsGroupId=<Project ID>
mmsApiKey=<Insert Agent API Key Here>

To manage your API keys, visit the Agent API Keys tab.

Prepare the /data directory to store your MongoDB data. This directory must be owned by the mongodb user.

sudo mkdir -p /data
sudo chown mongodb:mongodb /data

Ensure that all 3rd-party dependencies for MongoDB are installed. See the documentation for a comprehensive list.

Start the agent.

sudo systemctl start mongodb-mms-automation-agent.service
@nfhipona
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment