You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/mongodb/roles/mongod/templates/mongod.conf.j2

25 lines
515 B

# mongo.conf
smallfiles=true
#where to log
logpath=/var/log/mongo/mongod-{{ inventory_hostname }}.log
logappend=true
# fork and run in background
fork = true
port = {{ mongod_port }}
dbpath={{ mongodb_datadir_prefix }}mongo-{{ inventory_hostname }}
keyFile={{ mongodb_datadir_prefix }}/secret
# location of pidfile
pidfilepath = /var/run/mongo/mongod-{{ inventory_hostname }}.pid
# Ping interval for Mongo monitoring server.
#mms-interval = <seconds>
# Replication Options
replSet={{ inventory_hostname }}