Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB support for storage #152

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

sruon
Copy link

@sruon sruon commented Dec 5, 2013

Hello,

I've been using blueprint for quite a while now and felt like trying out the server but I found out it only supports S3 as a backend for storage.

Using pymongo I've added support for MongoDB in the server backend as a quick personnal project.

Requirements (on top of existing ones):

sudo pip install pymongo

Configuration:

Server side /etc/blueprint.cfg

[server]
backend = mongodb # mongodb or s3
address = localhost:5000 # address of your blueprint server
use_https = False # indicates if we should craft url with https or not
[mongodb] 
address = localhost # your MongoDB server address
port = 27017 # your MongoDB server port
collection = blueprint_tarballs # your MongoDB collection
database = blueprint # your MongoDB database
user = myuser # your MongoDB user with access to DB (optionnal)
password = mypassword # your MongoDB user password (optionnal)

Client side /etc/blueprint.cfg

[io]
server = http://localhost:5000
secret = mysuperverylongsecret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant