mongodb charm auth experiment

Matthew Williams matthew.williams at canonical.com
Fri Mar 15 18:29:38 UTC 2013


Full disclaimer. I know very little about mongo - I've only really been 
using it for the last 5 days.
However we were interested in seeing if we could setup some users when 
the charm is connected to another one. The idea was to basically copy 
the scheme used in the postgres charm whereby:

a relationship is added between mongodb and some-charm that needs it.

some-charm calls set-relationship database=dbName

if auth has been enabled then the mongodb charm will generate a username 
and password and add them as a user to that db. It will set these on the 
relationship

some-charm will then get these values using relation-get.

The branch is here
https://code.launchpad.net/~mattyw/charms/precise/mongodb/auth_experiment <https://code.launchpad.net/%7Emattyw/charms/precise/mongodb/auth_experiment>

lp:~mattyw/charms/precise/mongodb/auth_experiment

I have no idea where on the insane-sensible spectrum this change is, but 
would love to know what people think

Cheers

Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130315/d4f2e94b/attachment.html>


More information about the Juju mailing list