|
29 | 29 |
|
30 | 30 | - To find the password for the |mms| project's {+mdbagent+} user, use
|
31 | 31 | one of the following methods:
|
32 |
| - |
| 32 | + |
33 | 33 | .. tabs::
|
34 | 34 |
|
35 | 35 | .. tab:: Using the UI
|
|
59 | 59 | :tabid: file
|
60 | 60 |
|
61 | 61 | 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 | + ) |
86 | 86 |
|
87 | 87 | - When you add a cluster under |mms|, |mms| automatically enables log
|
88 | 88 | :manual:`rotation </tutorial/rotate-log-files/>`, which could collide
|
|
0 commit comments