Skip to content

DOCS-4758: SUSE Enterprise installation tutorial use zypper #2182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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: 11 additions & 1 deletion source/includes/release-pinning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ language: 'sh'
code: |
sudo zypper install mongodb-org-{{version}} mongodb-org-server-{{version}} mongodb-org-shell-{{version}} mongodb-org-mongos-{{version}} mongodb-org-tools-{{version}}
---
ref: pin-repo-suse-enterprise
language: 'sh'
code: |
sudo zypper install mongodb-enterprise-{{version}} mongodb-enterprise-server-{{version}} mongodb-enterprise-shell-{{version}} mongodb-enterprise-mongos-{{version}} mongodb-enterprise-tools-{{version}}
---
ref: pin-repo-suse-lock
language: 'sh'
code: |
sudo zypper addlock mongodb-org-{{version}} mongodb-org-server-{{version}} mongodb-org-shell-{{version}} mongodb-org-mongos-{{version}} mongodb-org-tools-{{version}}
...
---
ref: pin-repo-suse-lock-enterprise
language: 'sh'
code: |
sudo zypper addlock mongodb-enterprise-{{version}} mongodb-enterprise-server-{{version}} mongodb-enterprise-shell-{{version}} mongodb-enterprise-mongos-{{version}} mongodb-enterprise-tools-{{version}}
...
56 changes: 47 additions & 9 deletions source/includes/steps-install-mongodb-enterprise-on-suse.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,52 @@
title: Configure the package management system (``zypper``).
stepnum: 1
source:
file: steps-install-mongodb-enterprise-on-linux.yaml
ref: sequence
# The content of the following include is auto-generated:
ref: config-zypper
pre: |
Add the repository so that you can install MongoDB using ``zypper``.
action:
pre: |
.. include:: /includes/release/curl-release-ent-suse11.rst
- pre: |
Use the following command to specify the latest stable release of MongoDB.
language: sh
code: |
sudo zypper addrepo --no-gpgcheck http://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/stable/x86_64/ mongodb
- pre: |
If you'd like to install MongoDB packages from a previous :ref:`release
series <release-version-numbers>`, 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,
use the following command:
language: sh
code: |
sudo zypper addrepo --no-gpgcheck http://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/2.6/x86_64/ mongodb
---
title: Install the MongoDB packages and associated tools.
stepnum: 2
source:
file: steps-install-mongodb-enterprise-on-linux.yaml
ref: ensure-binaries-in-path
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 zypper install mongodb-enterprise
- 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:

.. include:: /includes/release/pin-repo-suse-enterprise.rst
- pre: |
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 packages by running the following
command:

.. include:: /includes/release/pin-repo-suse-lock-enterprise.rst
post: |
Previous versions of MongoDB packages use a different repository location.
See the :v2.6:`2.6 version of documentation for more information
</tutorial/install-mongodb-on-linux>`.
...
13 changes: 6 additions & 7 deletions source/includes/steps-install-mongodb-on-suse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ title: Configure the package management system (``zypper``).
stepnum: 1
ref: config-yum
pre: |
Add the repository so that you can install MongoDB directly, using ``zypper``.
Add the repository so that you can install MongoDB using ``zypper``.
action:
- pre: |
Use the following command to specify the *latest* stable release of MongoDB.
language: sh
code: |
zypper addrepo --no-gpgcheck http://repo.mongodb.org/zypper/suse/11/mongodb-org/3.0/x86_64/ mongodb
- pre: |
Use the following repository for *only* versions of
MongoDB for the ``3.0`` release. If you'd like to install
MongoDB packages from a particular :ref:`release
This repository only offers the ``3.0`` MongoDB release. If you'd like
to install MongoDB packages from a previous :ref:`release
series <release-version-numbers>`, 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,
Expand Down Expand Up @@ -43,12 +42,12 @@ action:
- pre: |
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 packages. To pin the packages, run
the following command:
prevent unintended upgrades, pin the packages by running the following
command:

.. include:: /includes/release/pin-repo-suse-lock.rst
post: |
Previous versions of MongoDB packages use a different repo location.
Previous versions of MongoDB packages use a different repository location.
Refer to the version of the documentation appropriate for
your MongoDB version.
...
31 changes: 7 additions & 24 deletions source/tutorial/install-mongodb-enterprise-on-suse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,19 @@ Use this tutorial to install :term:`MongoDB Enterprise` on SUSE Linux.
MongoDB Enterprise is available on select platforms and contains support
for several features related to security and monitoring.

Prerequisites
-------------

To use MongoDB Enterprise on SUSE Enterprise Linux, you must install
several prerequisite packages:

- ``libopenssl0_9_8``
- ``libsnmp15``
- ``net-snmp``
- ``snmp-mibs``
- ``cyrus-sasl``
- ``cyrus-sasl-gssapi``

To install these packages, you can issue the following command:

.. code-block:: sh

sudo zypper install libopenssl0_9_8 net-snmp libsnmp15 snmp-mibs cyrus-sasl cyrus-sasl-gssapi
.. include:: /includes/list-mongodb-enterprise-packages.rst

Install MongoDB Enterprise
--------------------------

.. note::

The Enterprise packages include an example SNMP configuration file
named ``mongod.conf``. This file is not a MongoDB configuration file.

.. include:: /includes/steps/install-mongodb-enterprise-on-suse.rst

Run MongoDB Enterprise
----------------------

.. include:: /includes/steps/run-mongodb-on-linux.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