diff --git a/lib/index.js b/lib/index.js index 25a4f677..964d0562 100644 --- a/lib/index.js +++ b/lib/index.js @@ -153,6 +153,10 @@ var start = function(opts, done) { args.push('--password=' + opts.password); } + if (opts.storageEngine) { + args.push('--storage_engine=' + opts.storageEngine); + } + if (opts.topology === 'replicaset') { args.push.apply(args, [ '--arbiters=' + opts.arbiters, @@ -291,6 +295,7 @@ function configure(opts, done) { port: process.env.MONGODB_PORT || 27017, mongodBin: process.env.MONGOD_BIN || 'mongod', mongosBin: process.env.MONGOS_BIN || 'mongos', + storageEngine: process.env.MONGODB_STORAGE_ENGINE, auth_mechanism: process.env.MONGODB_AUTH_MECHANISM || 'none', purge: process.env.MONGODB_PURGE || true });