Skip to content

Commit 46bf44e

Browse files

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,29 @@
6060

6161
Open the :setting:`mmsConfigBackup` file in your preferred text editor and find the ``autoPwd`` value.
6262

63-
.. example::
64-
65-
If the |mms| project has :doc:`Username/Password
66-
</tutorial/enable-mongodbcr-authentication-for-group>`
67-
mechanism selected for its authentication settings, 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-
}
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+
}
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)