Charmed MongoDB

Channel Revision Published Runs on
5/stable 117 20 Apr 2023
Ubuntu 22.04
5/candidate 117 20 Apr 2023
Ubuntu 22.04
5/edge 127 19 Sep 2023
Ubuntu 22.04
3.6/stable 100 28 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/candidate 100 13 Apr 2023
Ubuntu 20.04 Ubuntu 18.04
3.6/edge 100 03 Feb 2023
Ubuntu 20.04 Ubuntu 18.04
juju deploy mongodb --channel 5/stable
Show information



How to manage related applications

New mongodb_client interface:

Relations to new applications are supported via the mongodb_client interface. To create a relation:

juju relate mongodb application

To remove a relation:

juju remove-relation mongodb application

Legacy mongodb interface:

We have also added support for the database legacy relation from the original version of the charm via the mongodb interface. Currently legacy relations operate without authentication and hence cannot be used with pre-existing new relations. Please note that these relations will be deprecated.

juju relate mongodb graylog

Rotate applications password

To rotate the passwords of users created for related applications, the relation should be removed and related again. That process will generate a new user and password for the application.

juju remove-relation application mongodb
juju add-relation application mongodb

Internal operator user

The operator user is used internally by the Charmed MongoDB Operator, the set-password action can be used to rotate its password.

  • To set a specific password for the operator user
juju run mongodb/leader set-password password=<password>
  • To randomly generate a password for the operator user
juju run mongodb/leader set-password

Help us improve this documentation

Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.

Last updated a month ago. Help improve this document in the forum.