Skip to content

Commit 98afb85

Browse files
authored
(DOCSP-46678) [OM] Missing closing parentheses -v7.0-backport (721) (#738)
# Backport This will backport the following commits from `master` to `v7.0`: - [(DOCSP-46678) [OM] Missing closing parentheses (#721)](10gen/docs-ops-manager#721) <!--- Backport version: 9.6.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport)
1 parent abe57de commit 98afb85

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

source/includes/prerequisites-for-adding-existing-deployment-to-automation.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
- To find the password for the |mms| project's {+mdbagent+} user, use
3131
one of the following methods:
32-
32+
3333
.. tabs::
3434

3535
.. tab:: Using the UI
@@ -59,30 +59,30 @@
5959
:tabid: file
6060

6161
Open the :setting:`mmsConfigBackup` file in your preferred text editor and find the ``autoPwd`` value.
62-
63-
.. example::
64-
65-
If the |mms| project is using :doc:`Username/Password
66-
</tutorial/enable-mongodbcr-authentication-for-group>`
67-
authentication, add the
68-
project's |mms| {+mdbagent+}s User ``mms-automation`` to
69-
the ``admin`` database in the MongoDB deployment to import.
70-
71-
.. code-block:: javascript
72-
73-
db.getSiblingDB("admin").createUser(
74-
{
75-
user: "mms-automation",
76-
pwd: <password>,
77-
roles: [
78-
'clusterAdmin',
79-
'dbAdminAnyDatabase',
80-
'readWriteAnyDatabase',
81-
'userAdminAnyDatabase',
82-
'restore',
83-
'backup'
84-
]
85-
}
62+
63+
- In {+mongosh+}, use the :method:`db.createUser()` method to add the
64+
|mms| project's {+mdbagent+} user to the MongoDB process.
65+
For example, if the |mms| project uses :doc:`Username/Password
66+
</tutorial/enable-mongodbcr-authentication-for-group>` authentication,
67+
run the following command to add the ``mms-automation`` user to
68+
the ``admin`` database in the MongoDB deployment to import:
69+
70+
.. code-block:: javascript
71+
72+
db.getSiblingDB("admin").createUser(
73+
{
74+
user: "mms-automation",
75+
pwd: "<password>",
76+
roles: [
77+
'clusterAdmin',
78+
'dbAdminAnyDatabase',
79+
'readWriteAnyDatabase',
80+
'userAdminAnyDatabase',
81+
'restore',
82+
'backup'
83+
]
84+
}
85+
)
8686
8787
- When you add a cluster under |mms|, |mms| automatically enables log
8888
:manual:`rotation </tutorial/rotate-log-files/>`, which could collide

0 commit comments

Comments
 (0)