|
60 | 60 |
|
61 | 61 | Open the :setting:`mmsConfigBackup` file in your preferred text editor and find the ``autoPwd`` value. |
62 | 62 |
|
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 | + } |
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