Skip to content

Commit c8567c2

Browse files
authored
Docsp 28124 rhel releasever (#5399)
* 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 63eebeb commit c8567c2

10 files changed

+197
-166
lines changed

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

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,51 @@
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+
.. tabs::
10+
11+
.. tab:: Amazon 2023
12+
:tabid: amazon-linux-2023
13+
14+
.. code-block:: cfg
15+
16+
[mongodb-enterprise-{+version+}]
17+
name=MongoDB Enterprise Repository
18+
baseurl=https://repo.mongodb.com/yum/amazon/2023/mongodb-enterprise/{+version+}/$basearch/
19+
gpgcheck=1
20+
enabled=1
21+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
22+
23+
.. tab:: Amazon 2
24+
:tabid: amazon-linux-2
25+
26+
.. code-block:: cfg
27+
28+
[mongodb-enterprise-{+version+}]
29+
name=MongoDB Enterprise Repository
30+
baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/{+version+}/$basearch/
31+
gpgcheck=1
32+
enabled=1
33+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
34+
35+
.. note::
36+
37+
If you have a ``mongodb-enterprise.repo`` file
38+
in this directory from a previous installation of MongoDB, you
39+
should remove it. Use the ``mongodb-enterprise-{+version+}.repo``
40+
file above to install MongoDB {+version+}.
41+
42+
You can also download the ``.rpm`` files directly from the
43+
`MongoDB repository <https://repo.mongodb.com/yum/amazon/>`_.
44+
Downloads are organized by Amazon Linux
45+
version (e.g. ``2023``), then MongoDB
46+
:ref:`release version <release-version-numbers>`
47+
(e.g. ``{+version+}``), then architecture (e.g. ``x86_64``).
48+
1249
---
1350
stepnum: 2
1451
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-amazon2023.yaml

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

source/includes/steps-install-mongodb-enterprise-on-amazon2023.yml

Lines changed: 0 additions & 17 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: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,46 @@
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: "2023"
10-
distro_name_full: "Amazon Linux 2023"
11-
distro_num: "2023"
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+
.. tabs::
11+
12+
.. tab:: Amazon Linux 2023
13+
:tabid: amazon-linux-2023
14+
15+
.. code-block:: cfg
16+
17+
[mongodb-org-{+version+}]
18+
name=MongoDB Repository
19+
baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/{+version+}/x86_64/
20+
gpgcheck=1
21+
enabled=1
22+
gpgkey=https://www.mongodb.org/static/pgp/server-{+pgp-version+}.asc
23+
24+
.. tab:: Amazon Linux 2
25+
:tabid: amazon-linux-2
26+
27+
.. code-block:: cfg
28+
29+
[mongodb-org-{+version+}]
30+
name=MongoDB Repository
31+
baseurl=https://repo.mongodb.org/yum/amazon/2/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+
You can also download the ``.rpm`` files directly from the
37+
`MongoDB repository <https://repo.mongodb.org/yum/amazon/>`_.
38+
Downloads are organized by Amazon Linux 2023 version
39+
(e.g. ``2023``), then MongoDB :ref:`version <release-version-numbers>`
40+
(e.g., ``{+version+}``), then architecture (e.g., ``x86_64``).
41+
42+
.. include:: /includes/5.0-changes/fact-odd-number-releases.rst
43+
1244
---
1345
stepnum: 2
1446
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 & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,7 @@ Follow these steps to install MongoDB |edition| Edition using the
6262
|package-manager| package manager. Select the tab for your version of
6363
Amazon Linux:
6464

65-
.. tabs::
66-
67-
.. tab:: Amazon Linux 2023
68-
:tabid: amazon-linux2023
69-
70-
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon2023.rst
71-
72-
.. tab:: Amazon Linux 2
73-
:tabid: amazon-linux-2
74-
75-
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon2.rst
76-
77-
.. tab:: Amazon Linux (2013.03+)
78-
:tabid: amazon-linux
79-
80-
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon.rst
65+
.. include:: /includes/steps/install-mongodb-enterprise-on-amazon.rst
8166

8267
.. note::
8368

0 commit comments

Comments
 (0)