add mongodb role
This commit is contained in:
44
ansible/roles/mongodb/templates/mongod.conf.j2
Normal file
44
ansible/roles/mongodb/templates/mongod.conf.j2
Normal file
@@ -0,0 +1,44 @@
|
||||
# mongod.conf
|
||||
|
||||
# for documentation of all options, see:
|
||||
# http://docs.mongodb.org/manual/reference/configuration-options/
|
||||
|
||||
processManagement:
|
||||
pidFilePath: /var/run/mongodb/mongod.pid
|
||||
|
||||
# Where and how to store data.
|
||||
storage:
|
||||
dbPath: /var/lib/mongodb
|
||||
# engine:
|
||||
# wiredTiger:
|
||||
|
||||
# where to write logging data.
|
||||
systemLog:
|
||||
destination: file
|
||||
logAppend: true
|
||||
logRotate: reopen
|
||||
path: /var/log/mongodb/mongod.log
|
||||
|
||||
# network interfaces
|
||||
net:
|
||||
port: 27017
|
||||
bindIp: 0.0.0.0
|
||||
|
||||
|
||||
# how the process runs
|
||||
processManagement:
|
||||
timeZoneInfo: /usr/share/zoneinfo
|
||||
|
||||
security:
|
||||
keyFile: /etc/mongo-keyfile
|
||||
authorization: enabled
|
||||
|
||||
#operationProfiling:
|
||||
|
||||
replication:
|
||||
replSetName: {{ mongodb_replicaset_name }}
|
||||
|
||||
#sharding:
|
||||
|
||||
setParameter:
|
||||
transactionLifetimeLimitSeconds: 3600
|
||||
Reference in New Issue
Block a user