appsembler / configuration

a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go
GNU Affero General Public License v3.0
14 stars 13 forks source link

Add support to Mongo atlas #271

Closed melvinsoft closed 4 years ago

melvinsoft commented 4 years ago

Mongo Atlas, the future Mongo database hosted service for Tahoe has a big difference with other providers like Compose.io (current provider) and self hosted mongo. The difference is that database users (edxapp and cs_comment_service must be live inside the admin database and not inside their own databases.

In order to avoid an authentication failure, we need to tell pymongo, against with database to authenticate in the connection parameters with the authSource parameter: Mongo doc

All this must still work work for enteprise deployments, since if not auth_source is specified the ansible default will fallback to the database name, which is where mongo will try to authenticate anyway.

melvinsoft commented 4 years ago

@OmarIthawi @thraxil Thanks for the reviews! It's all green now!