diff --git a/source/includes/extracts-install-mongodb-manually.yaml b/source/includes/extracts-install-mongodb-manually.yaml index f7de8feb4d0..5c258bcdd7d 100644 --- a/source/includes/extracts-install-mongodb-manually.yaml +++ b/source/includes/extracts-install-mongodb-manually.yaml @@ -12,6 +12,7 @@ content: | --- ref: install-mongodb-enterprise-manually-suse content: | + .. class:: copyable-code .. code-block:: sh zypper install krb5 libcurl4 libldap-2_4-2 libopenssl1_0_0 cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5 libsensors4 libsnmp30 libwrap0 @@ -19,6 +20,7 @@ content: | --- ref: install-mongodb-enterprise-manually-debian content: | + .. class:: copyable-code .. code-block:: sh sudo apt-get install libcurl3 libgssapi-krb5-2 libldap-2.4-2 libpcap0.8 libpci3 libsasl2-2 libsensors4 libsnmp30 libssl1.0.0 libwrap0 diff --git a/source/includes/fact-redhat-6-dependencies.rst b/source/includes/fact-redhat-6-dependencies.rst index 42b2526c0e0..a8aec2a6833 100644 --- a/source/includes/fact-redhat-6-dependencies.rst +++ b/source/includes/fact-redhat-6-dependencies.rst @@ -1,3 +1,4 @@ +.. class:: copyable-code .. code-block:: sh yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5-libs net-snmp openssl libcurl diff --git a/source/includes/fact-redhat-7-dependencies.rst b/source/includes/fact-redhat-7-dependencies.rst index da1faed5306..6080f71f393 100644 --- a/source/includes/fact-redhat-7-dependencies.rst +++ b/source/includes/fact-redhat-7-dependencies.rst @@ -1,3 +1,4 @@ +.. class:: copyable-code .. code-block:: sh yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5-libs lm_sensors-libs net-snmp-agent-libs net-snmp openssl rpm-libs tcp_wrappers-libs libcurl diff --git a/source/includes/release-base.yaml b/source/includes/release-base.yaml index 499bc24cf5e..8760d8b170a 100644 --- a/source/includes/release-base.yaml +++ b/source/includes/release-base.yaml @@ -1,31 +1,37 @@ ref: _curl-release +copyable: true language: 'sh' code: | curl -O https://fastdl.mongodb.org/{{platform}}/mongodb-{{platform}}-{{builder}}-{{version}}.tgz --- ref: _copy-release +copyable: true language: 'sh' code: | mkdir -p mongodb cp -R -n mongodb-{{platform}}-{{builder}}-{{version}}/ mongodb --- ref: _copy-release-ent +copyable: true language: 'sh' code: | mkdir -p mongodb cp -R -n mongodb-{{platform}}-{{builder}}-enterprise-{{version}}/ mongodb --- ref: _untar-release +copyable: true language: 'sh' code: | tar -zxvf mongodb-{{platform}}-{{builder}}-{{version}}.tgz --- ref: _untar-release-ent +copyable: true language: 'sh' code: | tar -zxvf mongodb-{{platform}}-{{builder}}-enterprise-{{version}}.tgz --- ref: _curl-release-ent +copyable: true language: 'sh' code: | curl -O https://downloads.mongodb.com/{{platform}}/mongodb-{{platform}}-{{builder}}-enterprise-{{distro}}-{{version}}.tgz @@ -33,6 +39,7 @@ code: | cp -R -n mongodb-{{platform}}-{{builder}}-enterprise-{{distro}}-{{version}}/ mongodb --- ref: _install-windows +copyable: true language: powershell code: | msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl-{{version}}-signed.msi ^ diff --git a/source/includes/steps-install-mongodb-enterprise-on-suse.yaml b/source/includes/steps-install-mongodb-enterprise-on-suse.yaml index 8cbac803637..62991f60bfc 100644 --- a/source/includes/steps-install-mongodb-enterprise-on-suse.yaml +++ b/source/includes/steps-install-mongodb-enterprise-on-suse.yaml @@ -13,11 +13,13 @@ action: Run the command appropriate for your version of SUSE: SUSE 11 + .. class:: copyable-code .. code-block:: sh sudo zypper addrepo --gpgcheck "https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/3.4/x86_64/" mongodb SUSE 12 + .. class:: copyable-code .. code-block:: sh sudo zypper addrepo --gpgcheck "https://repo.mongodb.com/zypper/suse/12/mongodb-enterprise/3.4/x86_64/" mongodb @@ -27,6 +29,7 @@ action: specify the release series in the repository configuration. For example, to restrict your SUSE 11 system to the 2.6 release series, use the following command: + copyable: true language: sh code: | sudo zypper addrepo --no-gpgcheck https://repo.mongodb.com/zypper/suse/11/mongodb-enterprise/2.6/x86_64/ mongodb diff --git a/source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml b/source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml index 1bfca5df012..cada4a8c0d4 100644 --- a/source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml +++ b/source/includes/steps-install-mongodb-enterprise-on-ubuntu.yaml @@ -14,18 +14,21 @@ action: Ubuntu 12.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu precise/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list Ubuntu 14.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list Ubuntu 16.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64,arm64,ppc64el,s390x ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list @@ -36,6 +39,7 @@ action: 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, add the following repository: + copyable: true language: sh code: | echo "deb http://repo.mongodb.com/apt/ubuntu "$(lsb_release -sc)"/mongodb-enterprise/2.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise-2.6.list diff --git a/source/includes/steps-install-mongodb-on-red-hat.yaml b/source/includes/steps-install-mongodb-on-red-hat.yaml index 5c3b12dc68b..6a5c0697a6e 100644 --- a/source/includes/steps-install-mongodb-on-red-hat.yaml +++ b/source/includes/steps-install-mongodb-on-red-hat.yaml @@ -13,6 +13,7 @@ action: - heading: For the *latest* stable release of MongoDB pre: | Use the following repository file: + copyable: true language: cfg code: | [mongodb-org-3.4] @@ -30,6 +31,7 @@ action: ``/etc/yum.repos.d/mongodb-org-2.6.repo`` file to hold the following configuration information for the MongoDB 2.6 repository: + copyable: true language: cfg code: | [mongodb-org-2.6] diff --git a/source/includes/steps-install-mongodb-on-suse.yaml b/source/includes/steps-install-mongodb-on-suse.yaml index 3c3cdb4f264..d256794743a 100644 --- a/source/includes/steps-install-mongodb-on-suse.yaml +++ b/source/includes/steps-install-mongodb-on-suse.yaml @@ -22,11 +22,13 @@ action: Run the command appropriate for your version of SUSE: SUSE 11 + .. class:: copyable-code .. code-block:: sh sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/11/mongodb-org/3.4/x86_64/" mongodb SUSE 12 + .. class:: copyable-code .. code-block:: sh sudo zypper addrepo --gpgcheck "https://repo.mongodb.org/zypper/suse/12/mongodb-org/3.4/x86_64/" mongodb @@ -39,6 +41,7 @@ action: For example, to restrict your SUSE 11 system to the 3.0 release series, use the following command: + copyable: true language: sh code: | sudo zypper addrepo --no-gpgcheck https://repo.mongodb.org/zypper/suse/11/mongodb-org/3.0/x86_64/ mongodb diff --git a/source/includes/steps-install-mongodb-on-ubuntu.yaml b/source/includes/steps-install-mongodb-on-ubuntu.yaml index 40d9485a0ae..12acce55341 100644 --- a/source/includes/steps-install-mongodb-on-ubuntu.yaml +++ b/source/includes/steps-install-mongodb-on-ubuntu.yaml @@ -7,6 +7,7 @@ action: package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import the `MongoDB public GPG Key `_: + copyable: true language: sh code: | sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 @@ -20,16 +21,19 @@ action: the command appropriate for your version of Ubuntu: Ubuntu 12.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list Ubuntu 14.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list Ubuntu 16.04 + .. class:: copyable-code .. code-block:: sh echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list diff --git a/source/includes/steps-run-mongodb-on-windows.yaml b/source/includes/steps-run-mongodb-on-windows.yaml index ff295f4a0fd..094fa4b3494 100644 --- a/source/includes/steps-run-mongodb-on-windows.yaml +++ b/source/includes/steps-run-mongodb-on-windows.yaml @@ -8,6 +8,7 @@ action: ``\data\db`` on the drive from which you start MongoDB. Create this folder by running the following command in a :guilabel:`Command Prompt`: + copyable: true language: powershell code: | md \data\db @@ -15,12 +16,14 @@ action: You can specify an alternate path for data files using the :option:`--dbpath ` option to :program:`mongod.exe`, for example: + copyable: true language: powershell code: | "C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --dbpath d:\test\mongodb\data - pre: | If your path includes spaces, enclose the entire path in double quotes, for example: + copyable: true language: powershell code: | "C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --dbpath "d:\test\mongo db data" @@ -35,6 +38,7 @@ action: pre: | To start MongoDB, run :program:`mongod.exe`. For example, from the :guilabel:`Command Prompt`: + copyable: true language: powershell code: | "C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" @@ -57,6 +61,7 @@ pre: | To connect to MongoDB through the :program:`mongo.exe ` shell, open another :guilabel:`Command Prompt`. action: + copyable: true language: powershell code: | "C:\Program Files\MongoDB\Server\3.4\bin\mongo.exe