Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Configure “Local Mode” if Servers Have No Internet Access

Overview

The Automation Agent requires access to MongoDB binaries in order to install MongoDB on new deployments or change MongoDB versions on existing ones. In a default configuration, the agents access the binaries over the internet from MongoDB Inc. If you deploy MongoDB on servers that have no internet access, you can run Automation by configuring Ops Manager to run in “local” mode, in which case the Automation Agents access the binaries from a directory on the Ops Manager Application server.

Note

You can also configure offline binary access for the Backup Daemon, which is a separate set of steps. See the mongodb.release.autoDownload setting.

Binaries Directory

You specify the binaries directory in the conf-mms.properties file and then place .tgz archives of the binaries in that directory. The Automation Agents will use these archives for all MongoDB installs. The “mongodb-mms” user must possess the permissions to read the .tgz files in the directory.

The following shows the ls -l output of the binaries directory for an example Ops Manager install that deploys only the versions of MongoDB listed:

$ cd /opt/mongodb/mms/mongodb-releases
$ ls -l
total 355032
-rw-r----- 1 mongodb-mms staff 116513825 Apr 27 15:06 mongodb-linux-x86_64-2.6.9.tgz
-rw-r----- 1 mongodb-mms staff  51163601 May 22 10:05 mongodb-linux-x86_64-amazon-3.0.3.tgz
-rw-r----- 1 mongodb-mms staff  50972165 May 22 10:06 mongodb-linux-x86_64-suse11-3.0.3.tgz
-rw-r----- 1 mongodb-mms staff  95800685 Apr 27 15:05 mongodb-linux-x86_64-enterprise-amzn64-2.6.9.tgz
-rw-r----- 1 mongodb-mms staff  50594134 Apr 27 15:04 mongodb-linux-x86_64-enterprise-amzn64-3.0.2.tgz
-rw-r----- 1 mongodb-mms staff  50438645 Apr 27 15:04 mongodb-linux-x86_64-enterprise-suse11-3.0.2.tgz

Version Manifest

When you run in local mode, you provide Ops Manager with the MongoDB version manifest, which makes Ops Manager aware of all released MongoDB versions. The Automation Agents, however, can only deploy those versions available in the binaries directory on the Ops Manager Application server. Further, the agent for a given group can only deploy an available version if that version is selected for use in the group’s Version Manager.

As MongoDB releases new versions, you must update the version manifest.

Prerequisites

Download Binaries Before Importing a Deployment

Populate the binaries directory with all required MongoDB versions before you import the deployment. If a version is missing, the Automation Agents will not be able to take control of the deployment.

Determine Which Binaries to Store

Your binaries directory will require archives of following versions:

  • versions used by existing deployments that you will import
  • versions you will use to create new deployments
  • versions you will use during an intermediary step in an upgrade. For example, if you will import an existing MongoDB 2.6 Community deployment and upgrade it first to MongoDB 3.0 Community and then to MongoDB 3.0 Enterprise, you must include all those editions and versions.

If you use both the MongoDB Community edition and the MongoDB Enterprise subscription edition, you must include the required versions of both.

The following table describes the archives required for specific versions:

Edition Version Archive
Community 2.6+, 2.4+ Linux archive at http://www.mongodb.org/downloads.
Community 3.0+ Platform-specific archive available from http://www.mongodb.org/downloads.
Enterprise 3.0+, 2.6+, 2.4+ Platform-specific archive available from http://mongodb.com/download.

Install Dependencies (MongoDB Enterprise Only)

If you will run MongoDB Enterprise and use Linux servers, then you must manually install a set of dependencies to each server before installing MongoDB. The MongoDB manual provides the appropriate command to install the dependencies. See the link for the server’s operating system:

Required Access

You must have Global Automation Admin or Global Owner access to perform this procedure.

Procedure

1

Stop the Ops Manager Application if not yet running in local mode.

Use the command appropriate to your operating system.

On a Linux system installed with a package manager:

sudo service mongodb-mms stop

On a Linux system installed with a .tar file:

<install_dir>/bin/mongodb-mms stop
2

Edit the conf-mms.properties configuration file to enable local mode and to specify the local directory for MongoDB binaries.

Open conf-mms.properties with root privileges and set the following automation.versions values:

Set the automation.versions.source setting to the value local:

automation.versions.source=local

Set automation.versions.directory to the directory on the Ops Manager Application server where you will store .tgz archives of the MongoDB binaries for access by the Automation Agent.

For example:

automation.versions.directory=/opt/mongodb/mms/mongodb-releases/
3

Start the Ops Manager Application.

Use the command appropriate to your operating system.

On a Linux system installed with a package manager:

sudo service mongodb-mms start

On a Linux system installed with a .tar file:

<install_dir>/bin/mongodb-mms start
4

Populate the Ops Manager Application server directory with the .tgz files for the MongoDB binaries.

Populate the directory you specified in the automation.versions.directory setting with the necessary versions of MongoDB as determined by the Determine Which Binaries to Store topic on this page.

Important

If you have not yet read the Determine Which Binaries to Store topic on this page, please do so before continuing with this procedure.

For example, to download MongoDB Enterprise 3.0 on Amazon Linux, issue a command similar to the following, replacing <download-url.tgz> with the download url for the archive:

sudo curl -OL <download-url.tgz>
5

Ensure that the “mongodb-mms” user can read the MongoDB binaries.

The “mongodb-mms” user must be able to read the .tgz files placed in the directory you specified in the automation.versions.directory.

For example, if on a Linux platform you place the .tgz files in the /opt/mongodb/mms/mongodb-releases/ directory, you could use the following sequence of commands to change ownership for all files in that directory to “mongodb-mms”:

cd /opt/mongodb/mms/mongodb-releases/
sudo chown mongodb-mms:mongodb-mms ./*
6

Open Ops Manager.

If you have not yet registered a user, click the Register link and follow the prompts to register a user and create the first group. The first registered user is automatically assigned the Global Owner role.

7

Copy the version manifest to Ops Manager.

  1. Click the Admin link in the upper right corner of the page to display to the system-wide Administration settings.

  2. Click the General tab if it is not already selected.

  3. Click Version Manifest.

  4. Click the Update the MongoDB Version Manifest button.

    If you cannot access the Internet, you must copy the manifest using a system that can, and you must then paste the manifest here. Copy the manifest from https://opsmanager.mongodb.com/static/version_manifest/1.8.json.

8

Specify which versions are available for download by Automation Agents associated with each group.

  1. Click Ops Manager in the upper left to leave the system-wide Administration settings.
  2. Click Deployment and then click Version Manager.
  3. Select the checkboxes for the versions of MongoDB that you have made available on the Ops Manager Application server.
  4. Click Review & Deploy at the top of the page.
  5. Click Confirm & Deploy.
9

Install the Automation Agent on each server on which you will manage MongoDB processes.

  1. Click Administration and then Agents.

  2. In the Automation section of the page, click the link for the operating system to which you will install. Following the installation instructions.

  3. Install the MongoDB Enterprise dependencies.

    If you will run MongoDB Enterprise and use Linux servers, then you must manually install a set of dependencies to each server before installing MongoDB. The MongoDB manual provides the appropriate command to install the dependencies. See the link for the server’s operating system: