MongoDBServer

Parses /etc/mongodb.conf

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

Summary
MongoDBServerParses /etc/mongodb.conf
ReferenceFor information on configuration options available to mongod reference one of the following resources:
LicenseThis file is licenced under the LGPL v2+, conforming to the other components of Augeas.
Lens Usage
Configuration filesThis lens applies to /etc/mongodb.conf.
ExamplesThe 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:

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