From f189af8a5e2a19a5b8e9b3aacaf06829467fc84a Mon Sep 17 00:00:00 2001 From: Ernie Hershey Date: Thu, 8 Jan 2015 16:18:57 -0500 Subject: [PATCH 1/5] DOCS-4621 Updated existing Linux install docs with new package information --- .../steps-install-mongodb-on-debian.yaml | 2 +- ...odb-on-red-hat-centos-or-fedora-linux.yaml | 36 ++++++++++++------- .../steps-install-mongodb-on-ubuntu.yaml | 10 +++--- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/source/includes/steps-install-mongodb-on-debian.yaml b/source/includes/steps-install-mongodb-on-debian.yaml index 770ef1df1f3..42bdc689a95 100644 --- a/source/includes/steps-install-mongodb-on-debian.yaml +++ b/source/includes/steps-install-mongodb-on-debian.yaml @@ -17,7 +17,7 @@ action: Create the list file using the following command: language: sh code: | - echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list + echo "deb http://repo.mongodb.org/apt/debian "$(lsb_release -sc)"/mongodb-org/2.8 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-2.8.list --- stepnum: 3 source: diff --git a/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml b/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml index 2f88cfc7c6a..36aeaa20f38 100644 --- a/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml +++ b/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml @@ -2,28 +2,40 @@ title: Configure the package management system (YUM). stepnum: 1 ref: config-yum pre: | - Create a ``/etc/yum.repos.d/mongodb.repo`` file to hold the + Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the following configuration information for the MongoDB repository: action: - pre: | If you are running a 64-bit system, use the following configuration: language: cfg code: | - [mongodb] + [mongodb-org-2.8] name=MongoDB Repository - baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ + baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.8/x86_64/ gpgcheck=0 enabled=1 - pre: | - If you are running a 32-bit system, which is not recommended for - production deployments, use the following configuration: + Use the following repository to install *only* versions of + MongoDB for the ``2.8`` release. If you'd like to install + MongoDB Enterprise packages from a particular :ref:`release + series `, such as 2.4 or 2.6, you can + specify the release series in the repository configuration. For + example, to restrict your system to the 2.6 release series, + create a ``/etc/yum.repos.d/mongodb-org-2.6.repo`` file + to hold the following configuration information for the MongoDB + Enterprise 2.6 repository: language: cfg code: | - [mongodb] - name=MongoDB Repository - baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/ + [mongodb-org-2.6] + name=MongoDB Enterprise 2.6 Repository + baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.6/$basearch/ gpgcheck=0 enabled=1 + - pre: | + ``.repo`` files for each release can also be found `in the repository itself `_. + Remember that odd-numbered minor release versions (e.g. 2.5) are development versions and are unsuitable + for production deployment. + --- title: Install the MongoDB packages and associated tools. stepnum: 2 @@ -41,11 +53,11 @@ action: - pre: | To install a specific release of MongoDB, specify each component package individually and append the version number to the - package name, as in the following example that installs the `2.6.1`` + package name, as in the following example that installs the `2.8.1`` release of MongoDB: language: sh code: | - sudo yum install -y mongodb-org-2.6.1 mongodb-org-server-2.6.1 mongodb-org-shell-2.6.1 mongodb-org-mongos-2.6.1 mongodb-org-tools-2.6.1 + sudo yum install -y mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 - pre: | You can specify any available version of MongoDB. However ``yum`` will upgrade the packages when a newer version becomes available. To @@ -55,7 +67,7 @@ action: code: | exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools post: | - Previous versions of MongoDB packages use different naming conventions. - See the :v2.4:`2.4 version of documentation for more information + Previous versions of MongoDB packages use a different repo location. + See the :v2.6:`2.6 version of documentation for more information `. ... diff --git a/source/includes/steps-install-mongodb-on-ubuntu.yaml b/source/includes/steps-install-mongodb-on-ubuntu.yaml index 9f73bf7ad32..a04f7d58578 100644 --- a/source/includes/steps-install-mongodb-on-ubuntu.yaml +++ b/source/includes/steps-install-mongodb-on-ubuntu.yaml @@ -20,7 +20,7 @@ action: the following command: language: sh code: | - echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list + echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/2.8 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-2.8.list --- title: Reload local package database. stepnum: 3 @@ -52,10 +52,10 @@ action: pre: | Specify each component package individually and append the version number to the package name, as in the following example - that installs the ``2.6.1`` release of MongoDB: + that installs the ``2.8.1`` release of MongoDB: language: sh code: | - sudo apt-get install -y mongodb-org=2.6.1 mongodb-org-server=2.6.1 mongodb-org-shell=2.6.1 mongodb-org-mongos=2.6.1 mongodb-org-tools=2.6.1 + sudo apt-get install -y mongodb-org=2.8.1 mongodb-org-server=2.8.1 mongodb-org-shell=2.8.1 mongodb-org-mongos=2.8.1 mongodb-org-tools=2.8.1 - heading: text: Pin a specific version of MongoDB. character: "'" @@ -73,7 +73,7 @@ action: echo "mongodb-org-mongos hold" | sudo dpkg --set-selections echo "mongodb-org-tools hold" | sudo dpkg --set-selections post: | - Previous versions of MongoDB packages use different naming conventions. - See the :v2.4:`2.4 version of documentation for more information + Previous versions of MongoDB packages use a different repo location. + See the :v2.6:`2.6 version of documentation for more information `. ... From e514c3c5ad6a4d7651329dcb1b622d52651a0792 Mon Sep 17 00:00:00 2001 From: Ernie Hershey Date: Thu, 8 Jan 2015 16:19:51 -0500 Subject: [PATCH 2/5] DOCS-4621 Copy redhat files to amazon and suse files --- .../steps-install-mongodb-on-amazon.yaml | 73 +++++++++++++++++++ .../steps-install-mongodb-on-suse.yaml | 73 +++++++++++++++++++ source/tutorial/install-mongodb-on-amazon.txt | 58 +++++++++++++++ source/tutorial/install-mongodb-on-suse.txt | 58 +++++++++++++++ 4 files changed, 262 insertions(+) create mode 100644 source/includes/steps-install-mongodb-on-amazon.yaml create mode 100644 source/includes/steps-install-mongodb-on-suse.yaml create mode 100644 source/tutorial/install-mongodb-on-amazon.txt create mode 100644 source/tutorial/install-mongodb-on-suse.txt diff --git a/source/includes/steps-install-mongodb-on-amazon.yaml b/source/includes/steps-install-mongodb-on-amazon.yaml new file mode 100644 index 00000000000..36aeaa20f38 --- /dev/null +++ b/source/includes/steps-install-mongodb-on-amazon.yaml @@ -0,0 +1,73 @@ +title: Configure the package management system (YUM). +stepnum: 1 +ref: config-yum +pre: | + Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the + following configuration information for the MongoDB repository: +action: + - pre: | + If you are running a 64-bit system, use the following configuration: + language: cfg + code: | + [mongodb-org-2.8] + name=MongoDB Repository + baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.8/x86_64/ + gpgcheck=0 + enabled=1 + - pre: | + Use the following repository to install *only* versions of + MongoDB for the ``2.8`` release. If you'd like to install + MongoDB Enterprise packages from a particular :ref:`release + series `, such as 2.4 or 2.6, you can + specify the release series in the repository configuration. For + example, to restrict your system to the 2.6 release series, + create a ``/etc/yum.repos.d/mongodb-org-2.6.repo`` file + to hold the following configuration information for the MongoDB + Enterprise 2.6 repository: + language: cfg + code: | + [mongodb-org-2.6] + name=MongoDB Enterprise 2.6 Repository + baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.6/$basearch/ + gpgcheck=0 + enabled=1 + - pre: | + ``.repo`` files for each release can also be found `in the repository itself `_. + Remember that odd-numbered minor release versions (e.g. 2.5) are development versions and are unsuitable + for production deployment. + +--- +title: Install the MongoDB packages and associated tools. +stepnum: 2 +ref: install +pre: | + When you install the packages, you choose whether to install the current + release or a previous one. This step provides the commands for both. +action: + - pre: | + To install the latest stable version of MongoDB, issue the following + command: + language: sh + code: | + sudo yum install -y mongodb-org + - pre: | + To install a specific release of MongoDB, specify each + component package individually and append the version number to the + package name, as in the following example that installs the `2.8.1`` + release of MongoDB: + language: sh + code: | + sudo yum install -y mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 + - pre: | + You can specify any available version of MongoDB. However ``yum`` + will upgrade the packages when a newer version becomes available. To + prevent unintended upgrades, pin the package. To pin a package, add + the following ``exclude`` directive to your ``/etc/yum.conf`` file: + language: ini + code: | + exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools +post: | + Previous versions of MongoDB packages use a different repo location. + See the :v2.6:`2.6 version of documentation for more information + `. +... diff --git a/source/includes/steps-install-mongodb-on-suse.yaml b/source/includes/steps-install-mongodb-on-suse.yaml new file mode 100644 index 00000000000..36aeaa20f38 --- /dev/null +++ b/source/includes/steps-install-mongodb-on-suse.yaml @@ -0,0 +1,73 @@ +title: Configure the package management system (YUM). +stepnum: 1 +ref: config-yum +pre: | + Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the + following configuration information for the MongoDB repository: +action: + - pre: | + If you are running a 64-bit system, use the following configuration: + language: cfg + code: | + [mongodb-org-2.8] + name=MongoDB Repository + baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.8/x86_64/ + gpgcheck=0 + enabled=1 + - pre: | + Use the following repository to install *only* versions of + MongoDB for the ``2.8`` release. If you'd like to install + MongoDB Enterprise packages from a particular :ref:`release + series `, such as 2.4 or 2.6, you can + specify the release series in the repository configuration. For + example, to restrict your system to the 2.6 release series, + create a ``/etc/yum.repos.d/mongodb-org-2.6.repo`` file + to hold the following configuration information for the MongoDB + Enterprise 2.6 repository: + language: cfg + code: | + [mongodb-org-2.6] + name=MongoDB Enterprise 2.6 Repository + baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.6/$basearch/ + gpgcheck=0 + enabled=1 + - pre: | + ``.repo`` files for each release can also be found `in the repository itself `_. + Remember that odd-numbered minor release versions (e.g. 2.5) are development versions and are unsuitable + for production deployment. + +--- +title: Install the MongoDB packages and associated tools. +stepnum: 2 +ref: install +pre: | + When you install the packages, you choose whether to install the current + release or a previous one. This step provides the commands for both. +action: + - pre: | + To install the latest stable version of MongoDB, issue the following + command: + language: sh + code: | + sudo yum install -y mongodb-org + - pre: | + To install a specific release of MongoDB, specify each + component package individually and append the version number to the + package name, as in the following example that installs the `2.8.1`` + release of MongoDB: + language: sh + code: | + sudo yum install -y mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 + - pre: | + You can specify any available version of MongoDB. However ``yum`` + will upgrade the packages when a newer version becomes available. To + prevent unintended upgrades, pin the package. To pin a package, add + the following ``exclude`` directive to your ``/etc/yum.conf`` file: + language: ini + code: | + exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools +post: | + Previous versions of MongoDB packages use a different repo location. + See the :v2.6:`2.6 version of documentation for more information + `. +... diff --git a/source/tutorial/install-mongodb-on-amazon.txt b/source/tutorial/install-mongodb-on-amazon.txt new file mode 100644 index 00000000000..80876f96732 --- /dev/null +++ b/source/tutorial/install-mongodb-on-amazon.txt @@ -0,0 +1,58 @@ +====================================================================== +Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux +====================================================================== + +.. default-domain:: mongodb + +Overview +-------- + +Use this tutorial to install MongoDB on Red Hat Enterprise Linux, CentOS +Linux, Fedora Linux, or a related system from ``.rpm`` +packages. While some of these distributions include their own +MongoDB packages, the official MongoDB packages are generally more up to +date. + +.. The following include includes two h2 headers: +.. Packages and Control Scripts + +.. |init-script-path| replace:: ``/etc/rc.d/init.d/mongod`` + +.. include:: /includes/list-mongodb-org-packages.rst + +.. warning:: + + With the introduction of ``systemd`` in Fedora 15, the control scripts + included in the packages available in the MongoDB downloads repository + are not compatible with Fedora systems. A correction is + forthcoming; see :issue:`SERVER-7285` for more information. In + the mean time use your own control scripts *or* install using the + procedure outlined in :doc:`/tutorial/install-mongodb-on-linux`. + +Considerations +-------------- + +For production deployments, always run MongoDB on 64-bit systems. + +.. include:: /includes/fact-installation-bind-ip-default-in-config.rst + +.. include:: /includes/note-package-change.rst + +Install MongoDB +--------------- + +.. include:: /includes/steps/install-mongodb-on-red-hat-centos-or-fedora-linux.rst + +Run MongoDB +----------- + +.. important:: + + .. include:: /includes/fact-selinux-redhat-options.rst + +.. |mongod-user| replace:: ``mongod`` +.. |mongod-datadir| replace:: ``/var/lib/mongo`` + +.. include:: /includes/fact-installation-directories.rst + +.. include:: /includes/steps/run-mongodb-on-a-linux-distribution.rst diff --git a/source/tutorial/install-mongodb-on-suse.txt b/source/tutorial/install-mongodb-on-suse.txt new file mode 100644 index 00000000000..80876f96732 --- /dev/null +++ b/source/tutorial/install-mongodb-on-suse.txt @@ -0,0 +1,58 @@ +====================================================================== +Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux +====================================================================== + +.. default-domain:: mongodb + +Overview +-------- + +Use this tutorial to install MongoDB on Red Hat Enterprise Linux, CentOS +Linux, Fedora Linux, or a related system from ``.rpm`` +packages. While some of these distributions include their own +MongoDB packages, the official MongoDB packages are generally more up to +date. + +.. The following include includes two h2 headers: +.. Packages and Control Scripts + +.. |init-script-path| replace:: ``/etc/rc.d/init.d/mongod`` + +.. include:: /includes/list-mongodb-org-packages.rst + +.. warning:: + + With the introduction of ``systemd`` in Fedora 15, the control scripts + included in the packages available in the MongoDB downloads repository + are not compatible with Fedora systems. A correction is + forthcoming; see :issue:`SERVER-7285` for more information. In + the mean time use your own control scripts *or* install using the + procedure outlined in :doc:`/tutorial/install-mongodb-on-linux`. + +Considerations +-------------- + +For production deployments, always run MongoDB on 64-bit systems. + +.. include:: /includes/fact-installation-bind-ip-default-in-config.rst + +.. include:: /includes/note-package-change.rst + +Install MongoDB +--------------- + +.. include:: /includes/steps/install-mongodb-on-red-hat-centos-or-fedora-linux.rst + +Run MongoDB +----------- + +.. important:: + + .. include:: /includes/fact-selinux-redhat-options.rst + +.. |mongod-user| replace:: ``mongod`` +.. |mongod-datadir| replace:: ``/var/lib/mongo`` + +.. include:: /includes/fact-installation-directories.rst + +.. include:: /includes/steps/run-mongodb-on-a-linux-distribution.rst From 9e698fee4a5f3075051c2d7d804cdcccdb97277e Mon Sep 17 00:00:00 2001 From: Ernie Hershey Date: Fri, 9 Jan 2015 16:26:54 -0500 Subject: [PATCH 3/5] DOCS-4621 Updates to Redhat docs --- ...-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml | 7 ++++--- .../install-mongodb-on-red-hat-centos-or-fedora-linux.txt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml b/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml index 36aeaa20f38..92c509ce541 100644 --- a/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml +++ b/source/includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml @@ -2,11 +2,12 @@ title: Configure the package management system (YUM). stepnum: 1 ref: config-yum pre: | - Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the - following configuration information for the MongoDB repository: + Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file so that + you can install MongoDB directly, using ``yum``. action: - pre: | - If you are running a 64-bit system, use the following configuration: + Use the following repository file to specify the *latest* + stable release of MongoDB. language: cfg code: | [mongodb-org-2.8] diff --git a/source/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt b/source/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt index 80876f96732..8b75ceea80e 100644 --- a/source/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt +++ b/source/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt @@ -1,5 +1,5 @@ ====================================================================== -Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux +Install MongoDB on Red Hat Enterprise, CentOS, or Fedora ====================================================================== .. default-domain:: mongodb From 98fc9a5de31eaf75b64b46b6d6dfef3304160b79 Mon Sep 17 00:00:00 2001 From: Ernie Hershey Date: Fri, 9 Jan 2015 17:10:20 -0500 Subject: [PATCH 4/5] DOCS-4621 Update Amazon and SUSE files --- .../steps-install-mongodb-on-amazon.yaml | 13 ++--- .../steps-install-mongodb-on-suse.yaml | 48 +++++++------------ source/tutorial/install-mongodb-on-amazon.txt | 24 ++-------- source/tutorial/install-mongodb-on-suse.txt | 24 ++-------- 4 files changed, 32 insertions(+), 77 deletions(-) diff --git a/source/includes/steps-install-mongodb-on-amazon.yaml b/source/includes/steps-install-mongodb-on-amazon.yaml index 36aeaa20f38..8c4e8bafbbd 100644 --- a/source/includes/steps-install-mongodb-on-amazon.yaml +++ b/source/includes/steps-install-mongodb-on-amazon.yaml @@ -2,16 +2,17 @@ title: Configure the package management system (YUM). stepnum: 1 ref: config-yum pre: | - Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the - following configuration information for the MongoDB repository: + Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file so that + you can install MongoDB directly, using ``yum``. action: - pre: | - If you are running a 64-bit system, use the following configuration: + Use the following repository file to specify the *latest* + stable release of MongoDB. language: cfg code: | [mongodb-org-2.8] name=MongoDB Repository - baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.8/x86_64/ + baseurl=http://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/2.8/x86_64/ gpgcheck=0 enabled=1 - pre: | @@ -28,11 +29,11 @@ action: code: | [mongodb-org-2.6] name=MongoDB Enterprise 2.6 Repository - baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.6/$basearch/ + baseurl=http://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/2.6/x86_64/ gpgcheck=0 enabled=1 - pre: | - ``.repo`` files for each release can also be found `in the repository itself `_. + ``.repo`` files for each release can also be found `in the repository itself `_. Remember that odd-numbered minor release versions (e.g. 2.5) are development versions and are unsuitable for production deployment. diff --git a/source/includes/steps-install-mongodb-on-suse.yaml b/source/includes/steps-install-mongodb-on-suse.yaml index 36aeaa20f38..3c5e39096e7 100644 --- a/source/includes/steps-install-mongodb-on-suse.yaml +++ b/source/includes/steps-install-mongodb-on-suse.yaml @@ -2,40 +2,24 @@ title: Configure the package management system (YUM). stepnum: 1 ref: config-yum pre: | - Create a ``/etc/yum.repos.d/mongodb-org-2.8.repo`` file to hold the - following configuration information for the MongoDB repository: + Add the repository so that you can install MongoDB directly, using ``zypper``. action: - pre: | - If you are running a 64-bit system, use the following configuration: - language: cfg + Use the following command to specify the *latest* stable release of MongoDB. + language: sh code: | - [mongodb-org-2.8] - name=MongoDB Repository - baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.8/x86_64/ - gpgcheck=0 - enabled=1 + zypper addrepo --no-gpgcheck http://repo.mongodb.org/zypper/suse/11/mongodb-org/2.8/x86_64/ mongodb - pre: | - Use the following repository to install *only* versions of + Use the following repository for *only* versions of MongoDB for the ``2.8`` release. If you'd like to install MongoDB Enterprise packages from a particular :ref:`release - series `, such as 2.4 or 2.6, you can + series `, such as 2.6, you can specify the release series in the repository configuration. For example, to restrict your system to the 2.6 release series, - create a ``/etc/yum.repos.d/mongodb-org-2.6.repo`` file - to hold the following configuration information for the MongoDB - Enterprise 2.6 repository: - language: cfg + use the following comand: + language: sh code: | - [mongodb-org-2.6] - name=MongoDB Enterprise 2.6 Repository - baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/2.6/$basearch/ - gpgcheck=0 - enabled=1 - - pre: | - ``.repo`` files for each release can also be found `in the repository itself `_. - Remember that odd-numbered minor release versions (e.g. 2.5) are development versions and are unsuitable - for production deployment. - + zypper addrepo --no-gpgcheck http://repo.mongodb.org/zypper/suse/11/mongodb-org/2.6/x86_64/ mongodb --- title: Install the MongoDB packages and associated tools. stepnum: 2 @@ -49,7 +33,7 @@ action: command: language: sh code: | - sudo yum install -y mongodb-org + sudo zypper install mongodb-org - pre: | To install a specific release of MongoDB, specify each component package individually and append the version number to the @@ -57,15 +41,15 @@ action: release of MongoDB: language: sh code: | - sudo yum install -y mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 + sudo zypper install mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 - pre: | - You can specify any available version of MongoDB. However ``yum`` + You can specify any available version of MongoDB. However ``zypper`` will upgrade the packages when a newer version becomes available. To - prevent unintended upgrades, pin the package. To pin a package, add - the following ``exclude`` directive to your ``/etc/yum.conf`` file: - language: ini + prevent unintended upgrades, pin the packages. To pin the packages, run + the folllowing command: + language: sh code: | - exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools + sudo zypper addlock mongodb-org-2.8.1 mongodb-org-server-2.8.1 mongodb-org-shell-2.8.1 mongodb-org-mongos-2.8.1 mongodb-org-tools-2.8.1 post: | Previous versions of MongoDB packages use a different repo location. See the :v2.6:`2.6 version of documentation for more information diff --git a/source/tutorial/install-mongodb-on-amazon.txt b/source/tutorial/install-mongodb-on-amazon.txt index 80876f96732..bf49818b81d 100644 --- a/source/tutorial/install-mongodb-on-amazon.txt +++ b/source/tutorial/install-mongodb-on-amazon.txt @@ -1,5 +1,5 @@ ====================================================================== -Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux +Install MongoDB on Amazon Linux ====================================================================== .. default-domain:: mongodb @@ -7,11 +7,8 @@ Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux Overview -------- -Use this tutorial to install MongoDB on Red Hat Enterprise Linux, CentOS -Linux, Fedora Linux, or a related system from ``.rpm`` -packages. While some of these distributions include their own -MongoDB packages, the official MongoDB packages are generally more up to -date. +Use this tutorial to install MongoDB on Amazon Linux from ``.rpm`` +packages. .. The following include includes two h2 headers: .. Packages and Control Scripts @@ -20,15 +17,6 @@ date. .. include:: /includes/list-mongodb-org-packages.rst -.. warning:: - - With the introduction of ``systemd`` in Fedora 15, the control scripts - included in the packages available in the MongoDB downloads repository - are not compatible with Fedora systems. A correction is - forthcoming; see :issue:`SERVER-7285` for more information. In - the mean time use your own control scripts *or* install using the - procedure outlined in :doc:`/tutorial/install-mongodb-on-linux`. - Considerations -------------- @@ -41,15 +29,11 @@ For production deployments, always run MongoDB on 64-bit systems. Install MongoDB --------------- -.. include:: /includes/steps/install-mongodb-on-red-hat-centos-or-fedora-linux.rst +.. include:: /includes/steps/install-mongodb-on-amazon.rst Run MongoDB ----------- -.. important:: - - .. include:: /includes/fact-selinux-redhat-options.rst - .. |mongod-user| replace:: ``mongod`` .. |mongod-datadir| replace:: ``/var/lib/mongo`` diff --git a/source/tutorial/install-mongodb-on-suse.txt b/source/tutorial/install-mongodb-on-suse.txt index 80876f96732..b0b09762d06 100644 --- a/source/tutorial/install-mongodb-on-suse.txt +++ b/source/tutorial/install-mongodb-on-suse.txt @@ -1,5 +1,5 @@ ====================================================================== -Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux +Install MongoDB on SUSE ====================================================================== .. default-domain:: mongodb @@ -7,10 +7,9 @@ Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux Overview -------- -Use this tutorial to install MongoDB on Red Hat Enterprise Linux, CentOS -Linux, Fedora Linux, or a related system from ``.rpm`` -packages. While some of these distributions include their own -MongoDB packages, the official MongoDB packages are generally more up to +Use this tutorial to install MongoDB on SUSE Linux from ``.rpm`` +packages. While SUSE distributions include their own MongoDB +packages, the official MongoDB packages are generally more up to date. .. The following include includes two h2 headers: @@ -20,15 +19,6 @@ date. .. include:: /includes/list-mongodb-org-packages.rst -.. warning:: - - With the introduction of ``systemd`` in Fedora 15, the control scripts - included in the packages available in the MongoDB downloads repository - are not compatible with Fedora systems. A correction is - forthcoming; see :issue:`SERVER-7285` for more information. In - the mean time use your own control scripts *or* install using the - procedure outlined in :doc:`/tutorial/install-mongodb-on-linux`. - Considerations -------------- @@ -41,15 +31,11 @@ For production deployments, always run MongoDB on 64-bit systems. Install MongoDB --------------- -.. include:: /includes/steps/install-mongodb-on-red-hat-centos-or-fedora-linux.rst +.. include:: /includes/steps/install-mongodb-on-suse.rst Run MongoDB ----------- -.. important:: - - .. include:: /includes/fact-selinux-redhat-options.rst - .. |mongod-user| replace:: ``mongod`` .. |mongod-datadir| replace:: ``/var/lib/mongo`` From f58e126b0953650e435db1bea50a4a0a293ebbf4 Mon Sep 17 00:00:00 2001 From: Ernie Hershey Date: Fri, 9 Jan 2015 16:41:10 -0500 Subject: [PATCH 5/5] DOCS-4621 Add Amazon and SUSE where other distros are mentioned --- primer/config/primer-migrations-simple.yaml | 4 ++++ primer/config/sphinx.yaml | 2 ++ source/includes/toc-installation-linux.yaml | 8 ++++++++ source/includes/toc-spec-installation-linux-packages.yaml | 2 ++ source/includes/toc-spec-installation.yaml | 4 ++++ source/tutorial.txt | 2 ++ 6 files changed, 22 insertions(+) diff --git a/primer/config/primer-migrations-simple.yaml b/primer/config/primer-migrations-simple.yaml index ac085bb4e02..f59bcdede48 100644 --- a/primer/config/primer-migrations-simple.yaml +++ b/primer/config/primer-migrations-simple.yaml @@ -28,6 +28,8 @@ sources: - includes/steps-install-mongodb-on-osx-with-homebrew.yaml - includes/steps-install-mongodb-on-red-hat-centos-or-fedora-linux.yaml - includes/steps-install-mongodb-on-ubuntu.yaml + - includes/steps-install-mongodb-on-amazon.yaml + - includes/steps-install-mongodb-on-suse.yaml - includes/steps-install-mongodb-on-windows.yaml - includes/steps-run-mongodb-on-a-linux-distribution.yaml - includes/steps-run-mongodb-on-debian.yaml @@ -42,6 +44,8 @@ sources: - tutorial/install-mongodb-on-linux.txt - tutorial/install-mongodb-on-os-x.txt - tutorial/install-mongodb-on-ubuntu.txt + - tutorial/install-mongodb-on-amazon.txt + - tutorial/install-mongodb-on-suse.txt - includes/driver-table.rst - includes/fact-id-values-generated.rst - includes/steps-getting-started-prereq.yaml diff --git a/primer/config/sphinx.yaml b/primer/config/sphinx.yaml index 47e700a91f0..8d7ede9259d 100644 --- a/primer/config/sphinx.yaml +++ b/primer/config/sphinx.yaml @@ -135,6 +135,8 @@ drivers-base: - /tutorial/install-mongodb-on-os-x.txt - /tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux.txt - /tutorial/install-mongodb-on-ubuntu.txt + - /tutorial/install-mongodb-on-amazon.txt + - /tutorial/install-mongodb-on-suse.txt - /tutorial/install-mongodb-on-windows.txt - /tutorial/install-on-linux.txt java-base: diff --git a/source/includes/toc-installation-linux.yaml b/source/includes/toc-installation-linux.yaml index dff9f82f868..f252b00112f 100644 --- a/source/includes/toc-installation-linux.yaml +++ b/source/includes/toc-installation-linux.yaml @@ -2,6 +2,14 @@ file: /tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux name: Install on Red Hat description: Install MongoDB on Red Hat Enterprise, CentOS, Fedora and related Linux systems using ``.rpm`` packages. --- +file: /tutorial/install-mongodb-on-suse +name: Install on SUSE +description: Install MongoDB on SUSE Linux systems using ``.rpm`` packages. +--- +file: /tutorial/install-mongodb-on-amazon +name: Install on Amazon Linux +description: Install MongoDB on Amazon Linux systems using ``.rpm`` packages. +--- file: /tutorial/install-mongodb-on-ubuntu name: Install on Ubuntu description: Install MongoDB on Ubuntu Linux systems using ``.deb`` packages. diff --git a/source/includes/toc-spec-installation-linux-packages.yaml b/source/includes/toc-spec-installation-linux-packages.yaml index dd76ddf7e91..141fd79ebca 100644 --- a/source/includes/toc-spec-installation-linux-packages.yaml +++ b/source/includes/toc-spec-installation-linux-packages.yaml @@ -2,5 +2,7 @@ sources: - toc-installation-linux.yaml files: - /tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux + - /tutorial/install-mongodb-on-suse + - /tutorial/install-mongodb-on-amazon - /tutorial/install-mongodb-on-ubuntu - /tutorial/install-mongodb-on-debian diff --git a/source/includes/toc-spec-installation.yaml b/source/includes/toc-spec-installation.yaml index e1593fd27ab..3b8e730da3b 100644 --- a/source/includes/toc-spec-installation.yaml +++ b/source/includes/toc-spec-installation.yaml @@ -10,6 +10,10 @@ files: level: 1 - file: /tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux level: 2 + - file: /tutorial/install-mongodb-on-amazon + level: 2 + - file: /tutorial/install-mongodb-on-suse + level: 2 - file: /tutorial/install-mongodb-on-ubuntu level: 2 - file: /tutorial/install-mongodb-on-debian diff --git a/source/tutorial.txt b/source/tutorial.txt index 010e3c54763..ec400d80a73 100644 --- a/source/tutorial.txt +++ b/source/tutorial.txt @@ -19,6 +19,8 @@ Getting Started - :doc:`/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux` - :doc:`/tutorial/install-mongodb-on-debian` - :doc:`/tutorial/install-mongodb-on-ubuntu` +- :doc:`/tutorial/install-mongodb-on-amazon` +- :doc:`/tutorial/install-mongodb-on-suse` - :doc:`/tutorial/install-mongodb-on-os-x` - :doc:`/tutorial/install-mongodb-on-windows` - :doc:`/tutorial/getting-started`