Skip to content

Commit effeae6

Browse files
authored
Docsp 28124 rhel releasever (#5399) (#5414)
* DOCSP-28124 Refactors RHEL/Amazon installation steps * Refactors RHEL for versioned conf files * Adds separate versions * Fixes text * Refactors Amazon to accommodate multiple versions * Fixes build issue * Refactors MongoDB Enterprise repo setup for Amazon * fixes build issue * fixes build issue * Enterprise RHEL install fix * Fixes build issue * Removes old Amazon YAML's * removes replacement values * Fixes build issue
1 parent 98c5934 commit effeae6

8 files changed

+163
-127
lines changed

source/includes/steps-install-mongodb-enterprise-on-amazon.yaml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
1+
title: Configure the package management system (``yum``).
12
stepnum: 1
23
level: 4
3-
source:
4-
file: steps-install-mongodb-enterprise-on-red-hat.yaml
5-
ref: install-repository
6-
replacement:
7-
distro_name: "amazon"
8-
distro_link: "`MongoDB repository <https://repo.mongodb.com/yum/amazon/>`_"
9-
distro_release: "2013.03"
10-
distro_name_full: "Amazon Linux"
11-
distro_num: "2013.03"
4+
ref: install-repository
5+
content: |
6+
Create an ``/etc/yum.repos.d/mongodb-enterprise-{+version+}.repo`` file so that
7+
you can install MongoDB enterprise directly using ``yum``:
8+
9+
.. code-block:: cfg
10+
11+
[mongodb-enterprise-{+version+}]
12+
name=MongoDB Enterprise Repository
13+
baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/{+version+}/$basearch/
14+
gpgcheck=1
15+
enabled=1
16+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
17+
18+
.. note::
19+
20+
If you have a ``mongodb-enterprise.repo`` file
21+
in this directory from a previous installation of MongoDB, you
22+
should remove it. Use the ``mongodb-enterprise-{+version+}.repo``
23+
file above to install MongoDB {+version+}.
24+
25+
You can also download the ``.rpm`` files directly from the
26+
`MongoDB repository <https://repo.mongodb.com/yum/amazon/>`_.
27+
Downloads are organized by Amazon Linux
28+
version (e.g. ``2``), then MongoDB
29+
:ref:`release version <release-version-numbers>`
30+
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
31+
1232
---
1333
stepnum: 2
1434
level: 4

source/includes/steps-install-mongodb-enterprise-on-amazon2.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

source/includes/steps-install-mongodb-enterprise-on-red-hat.yaml

Lines changed: 59 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,66 @@ title: Configure repository.
22
ref: install-repository
33
stepnum: 1
44
level: 4
5-
pre: |
5+
content: |
6+
67
Create an ``/etc/yum.repos.d/mongodb-enterprise-{+version+}.repo`` file so that
7-
you can install MongoDB enterprise directly using ``yum``:
8-
action:
9-
language: cfg
10-
code: |
11-
[mongodb-enterprise-{+version+}]
12-
name=MongoDB Enterprise Repository
13-
baseurl=https://repo.mongodb.com/yum/{{distro_name}}/{{distro_release}}/mongodb-enterprise/{+version+}/$basearch/
14-
gpgcheck=1
15-
enabled=1
16-
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
17-
post: |
18-
19-
.. note::
20-
If you have a ``mongodb-enterprise.repo`` file
21-
in this directory from a previous installation of MongoDB, you
22-
should remove it. Use the ``mongodb-enterprise-{+version+}.repo``
23-
file above to install MongoDB {+version+}.
24-
25-
You can also download the ``.rpm`` files directly from the
26-
{{distro_link}}. Downloads are organized by {{distro_name_full}}
27-
version (e.g. ``{{distro_num}}``), then MongoDB
28-
:doc:`release version </reference/versioning>`
29-
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
30-
31-
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
32-
33-
replacement:
34-
distro_name: "redhat"
35-
distro_link: "`MongoDB repository <https://repo.mongodb.com/yum/redhat/>`_"
36-
distro_release: "$releasever"
37-
distro_name_full: "Red Hat / CentOS"
38-
distro_num: "7"
8+
you can install MongoDB Enterprise directly using ``yum``:
9+
10+
.. tabs::
11+
12+
.. tab:: 9
13+
:tabid: rhel9
14+
15+
.. code-block:: cfg
16+
17+
[mongodb-enterprise-{+version+}]
18+
name=MongoDB Enterprise Repository
19+
baseurl=https://repo.mongodb.com/yum/redhat/9/mongodb-enterprise/{+version+}/$basearch/
20+
gpgcheck=1
21+
enabled=1
22+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
23+
24+
25+
.. tab:: 8
26+
:tabid: rhel8
27+
28+
.. code-block:: cfg
29+
30+
[mongodb-enterprise-{+version+}]
31+
name=MongoDB Enterprise Repository
32+
baseurl=https://repo.mongodb.com/yum/redhat/8/mongodb-enterprise/{+version+}/$basearch/
33+
gpgcheck=1
34+
enabled=1
35+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
36+
37+
.. tab:: 7
38+
:tabid: rhel7
39+
40+
.. code-block:: cfg
41+
42+
[mongodb-enterprise-{+version+}]
43+
name=MongoDB Enterprise Repository
44+
baseurl=https://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/{+version+}/$basearch/
45+
gpgcheck=1
46+
enabled=1
47+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
48+
49+
50+
.. note::
51+
If you have a ``mongodb-enterprise.repo`` file
52+
in this directory from a previous installation of MongoDB, you
53+
should remove it. Use the ``mongodb-enterprise-{+version+}.repo``
54+
file above to install MongoDB {+version+}.
55+
56+
You can also download the ``.rpm`` files directly from the
57+
`MongoDB repository <https://repo.mongodb.com/yum/redhat/>`_.
58+
Downloads are organized by Red Hat / CentOS
59+
version (e.g. ``9``), then MongoDB
60+
:ref:`release version <release-version-numbers>`
61+
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
62+
63+
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
64+
3965
---
4066
title: Install the MongoDB Enterprise packages.
4167
stepnum: 2

source/includes/steps-install-mongodb-on-amazon.yaml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1+
title: Configure the package management system (``yum``).
12
stepnum: 1
23
level: 4
3-
source:
4-
file: steps-install-mongodb-on-red-hat.yaml
5-
ref: config-yum
6-
replacement:
7-
distro_name: "amazon"
8-
distro_link: "`MongoDB repository <https://repo.mongodb.org/yum/amazon/>`_"
9-
distro_release: "2013.03"
10-
distro_name_full: "Amazon Linux"
11-
distro_num: "2013.03"
4+
ref: config-yum
5+
content: |
6+
7+
Create a ``/etc/yum.repos.d/mongodb-org-{+version+}.repo`` file so that
8+
you can install MongoDB directly using ``yum``:
9+
10+
.. code-block:: cfg
11+
12+
[mongodb-org-{+version+}]
13+
name=MongoDB Repository
14+
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/{+version+}/x86_64/
15+
gpgcheck=1
16+
enabled=1
17+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
18+
19+
You can also download the ``.rpm`` files directly from the
20+
`MongoDB repository <https://repo.mongodb.org/yum/amazon/>`_.
21+
Downloads are organized by Amazon Linux version
22+
(e.g. ``2``), then MongoDB :ref:`version <release-version-numbers>`
23+
(e.g., ``{+version+}``), then architecture (e.g., ``x86_64``).
24+
25+
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
26+
1227
---
1328
stepnum: 2
1429
level: 4

source/includes/steps-install-mongodb-on-amazon2.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

source/includes/steps-install-mongodb-on-red-hat.yaml

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,59 @@ title: Configure the package management system (``yum``).
22
stepnum: 1
33
level: 4
44
ref: config-yum
5-
pre: |
5+
content: |
66
Create a ``/etc/yum.repos.d/mongodb-org-{+version+}.repo`` file so that
77
you can install MongoDB directly using ``yum``:
8-
action:
9-
language: cfg
10-
code: |
11-
[mongodb-org-{+version+}]
12-
name=MongoDB Repository
13-
baseurl=https://repo.mongodb.org/yum/{{distro_name}}/{{distro_release}}/mongodb-org/{+version+}/x86_64/
14-
gpgcheck=1
15-
enabled=1
16-
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
17-
post: |
18-
You can also download the ``.rpm`` files directly from the
19-
{{distro_link}}. Downloads are organized by {{distro_name_full}}
20-
version (e.g. ``{{distro_num}}``), then MongoDB
21-
:doc:`release version </reference/versioning>`
22-
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
8+
9+
.. tabs::
10+
11+
.. tab:: 9
12+
:tabid: rhel9
13+
14+
.. code-block:: cfg
15+
16+
[mongodb-org-{+version+}]
17+
name=MongoDB Repository
18+
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/{+version+}/x86_64/
19+
gpgcheck=1
20+
enabled=1
21+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
22+
23+
24+
.. tab:: 8
25+
:tabid: rhel8
26+
27+
.. code-block:: cfg
28+
29+
[mongodb-org-{+version+}]
30+
name=MongoDB Repository
31+
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/{+version+}/x86_64/
32+
gpgcheck=1
33+
enabled=1
34+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
35+
36+
37+
.. tab:: 7
38+
:tabid: rhel7
39+
40+
.. code-block:: cfg
41+
42+
[mongodb-org-{+version+}]
43+
name=MongoDB Repository
44+
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/{+version+}/x86_64/
45+
gpgcheck=1
46+
enabled=1
47+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
48+
49+
You can also download the ``.rpm`` files directly from the
50+
`MongoDB repository <https://repo.mongodb.org/yum/redhat/>`_.
51+
Downloads are organized by Red Hat / CentOS
52+
version (e.g. ``9``), then MongoDB
53+
:ref:`release version <release-version-numbers>`
54+
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
2355
24-
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
56+
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
2557
26-
replacement:
27-
distro_name: "redhat"
28-
distro_link: "`MongoDB repository <https://repo.mongodb.org/yum/redhat/>`_"
29-
distro_release: "$releasever"
30-
distro_name_full: "Red Hat / CentOS"
31-
distro_num: "7"
3258
---
3359
title: Install the MongoDB packages.
3460
stepnum: 2

source/tutorial/install-mongodb-enterprise-on-amazon.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,7 @@ Follow these steps to install MongoDB |edition| Edition using the
5959
|package-manager| package manager. Select the tab for your version of
6060
Amazon Linux:
6161

62-
.. tabs::
63-
64-
.. tab:: Amazon Linux 2
65-
:tabid: amazon-linux-2
66-
67-
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon2.rst
68-
69-
.. tab:: Amazon Linux (2013.03+)
70-
:tabid: amazon-linux
71-
72-
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon.rst
62+
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon.rst
7363

7464
.. note::
7565

source/tutorial/install-mongodb-on-amazon.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,7 @@ Follow these steps to install MongoDB |edition| Edition using the
5959
|package-manager| package manager. Select the tab for your version of
6060
Amazon Linux:
6161

62-
.. tabs::
63-
64-
.. tab:: Amazon Linux 2
65-
:tabid: amazon-linux-2
66-
67-
.. include:: /includes/steps/install-mongodb-on-amazon2.rst
68-
69-
.. tab:: Amazon Linux (2013.03+)
70-
:tabid: amazon-linux
71-
72-
.. include:: /includes/steps/install-mongodb-on-amazon.rst
62+
.. include:: /includes/steps/install-mongodb-on-amazon.rst
7363

7464
Run MongoDB Community Edition
7565
-----------------------------

0 commit comments

Comments
 (0)