<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Full disclaimer. I know very little about mongo - I've only really
been using it for the last 5 days.<br>
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:<br>
<br>
a relationship is added between mongodb and some-charm that needs
it.<br>
<br>
some-charm calls set-relationship database=dbName<br>
<br>
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<br>
<br>
some-charm will then get these values using relation-get.<br>
<br>
The branch is here<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="https://code.launchpad.net/%7Emattyw/charms/precise/mongodb/auth_experiment">https://code.launchpad.net/~mattyw/charms/precise/mongodb/auth_experiment</a><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
lp:~mattyw/charms/precise/mongodb/auth_experiment<br>
<br>
I have no idea where on the insane-sensible spectrum this change is,
but would love to know what people think<br>
<br>
Cheers<br>
<br>
Matt<br>
<br>
</body>
</html>