Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

boxen/puppet-mongodb

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MongoDB Puppet Module for Boxen

Build Status

Usage

include mongodb

Required Puppet Modules

  • boxen
  • homebrew
  • stdlib

Environment

Once installed, you can access the following variables in your environment, projects, etc:

  • BOXEN_MONGODB_PORT: the configured mongodb port
  • BOXEN_MONGODB_URL: the URL for mongodb, including localhost & port

Ruby

For the ruby client:

@client = Mongo::MongoClient.new('localhost', ENV['BOXEN_MONGODB_PORT'] || 27017)

For mongomapper's config/mongo.yml:

development:
  uri: <%= ENV['BOXEN_MONGODB_URL'] || 'mongodb://localhost:27017/' %>