# MongoDBServer

Parses /etc/mongodb.conf

Author: Brian Redbeard redb.nosp@m.eard@dead-c.nosp@m.ity.org

Summary

MongoDBServer | Parses /etc/mongodb.conf
Reference | For information on configuration options available to mongod reference one of the following resources:
License | This file is licenced under the LGPL v2+, conforming to the other components of Augeas.
Lens Usage |
Configuration files | This lens applies to /etc/mongodb.conf.
Examples | The Test_MongoDBServer file contains various examples and tests.
Augeas Lenses |
entry |
lns |
Augeas Variables |
filter |

### Reference

For information on configuration options available to mongod reference one of the following resources:

- The Mongo DB Manual - http://docs.mongodb.org/manual/
- The current options available for your operating system via:

>     man mongos

### License

This file is licenced under the LGPL v2+, conforming to the other components of Augeas.

### Lens Usage

#### Sample usage of this lens in augtool

- Get your current setup

>     print /files/etc/mongodb.conf

...

- Change MongoDB port

>     set /files/etc/mongodb.conf/port 27117

#### Saving your file

>     save

### Configuration files

This lens applies to /etc/mongodb.conf. See filter.

### Examples

The Test_MongoDBServer file contains various examples and tests.

### Augeas Lenses

### entry

> let entry = Build.key_value_line Rx.word Sep.space_equal (store Rx.space_in)

### lns

> let lns = (Util.empty | Util.comment | entry)*

### Augeas Variables

### filter

Provides unit tests and examples for the MongoDBServer lens.

> let entry = Build.key_value_line Rx.word Sep.space_equal (store Rx.space_in)

> let lns = (Util.empty | Util.comment | entry)*

Close