The Charm Store will undergo scheduled database maintenance on July 5, 2026 22:00 to July 6, 02:00 UTC. During this time, you may be unable to access charm and bundle metadata or publish updates. No user action is required and services will automatically resume once maintenance is complete.

MongoDB

Canonical Publisher

Platform:

Ubuntu
24.04 22.04
Channel Revision Published Runs on
6/stable 265 23 Jan 2026
Ubuntu 22.04
6/candidate 265 23 Jan 2026
Ubuntu 22.04
6/beta 265 23 Jan 2026
Ubuntu 22.04
6/edge 341 08 Jun 2026
Ubuntu 22.04
8-transition/edge 343 08 Jun 2026
Ubuntu 24.04
8-transition/edge 342 08 Jun 2026
Ubuntu 24.04
8/stable 266 23 Jan 2026
Ubuntu 24.04
8/candidate 266 23 Jan 2026
Ubuntu 24.04
8/beta 266 23 Jan 2026
Ubuntu 24.04
8/edge 347 23 Jun 2026
Ubuntu 24.04
8/edge 346 23 Jun 2026
Ubuntu 24.04
juju deploy mongodb --channel 6/stable

Learn about configurations >

  • auto-delete | boolean

    When a relation is removed, auto-delete ensures that any relevant databases associated with the relation are also removed

  • ldap-query-template | string

    A RFC4516 formatted LDAP query URL template, which is used for authorization. It must contain either {USER} representing the authenticated user, or {PROVIDED_USER} representing the supplied username (before authentication or LDAP transformation). {PROVIDED_USER} should be used only if no ldapUserToDNMapping is provided. If this configuration is not provided, a default string will be computed based on the base_dn returned by the GLAuth k8s charm. Example: dc=example,dc=com??sub?(&(objectClass=groupOfNames)(member={USER}))

  • ldap-user-to-dn-mapping | string

    A quote-enclosed JSON-string representing an ordered array of documents. Each document contains a regular expression match and either a substitution or ldapQuery template used for transforming the incoming username. Since the list is ordered, this order can be used to provide fine-grained tuning for building the right DN or the right ldapQuery for the user. Example: [{ match : "([^@]+)@([^@\.]+)\.example\.com", substitution: "CN={0},CN=Users,DC={1},DC=example,DC=com" }]

  • role | string

    Default: replication

    role config option exists to deploy the charmed-mongodb application as a shard, config-server, or as a replica set.