# MongoDB Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`

## Usage

```puppet
include mongodb
```

# MongoDB Puppet Module for Boxen

Requires the following boxen modules:

* `boxen`

## Usage

```puppet
include mongodb
```

### Environment

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

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

### Ruby

For the [ruby client](http://api.mongodb.org/ruby/current/):

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

For [mongomapper](http://mongomapper.com/)'s `config/mongo.yml`:

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

Add documentation for environment variables
Add documentation for environment variables
