mongodb: Initial version of role
This commit is contained in:
parent
c7e0822900
commit
2cefd6d50d
5 changed files with 144 additions and 0 deletions
23
roles/mongodb/templates/mongod.conf.j2
Normal file
23
roles/mongodb/templates/mongod.conf.j2
Normal file
|
@ -0,0 +1,23 @@
|
|||
|
||||
systemLog:
|
||||
destination: file
|
||||
logAppend: true
|
||||
path: /var/log/mongodb/mongod.log
|
||||
|
||||
storage:
|
||||
dbPath: /srv/mongodb
|
||||
journal:
|
||||
enabled: true
|
||||
|
||||
processManagement:
|
||||
fork: true
|
||||
pidFilePath: /var/run/mongodb/mongod.pid
|
||||
timeZoneInfo: /usr/share/zoneinfo
|
||||
|
||||
net:
|
||||
port: 27017
|
||||
bindIpAll: true
|
||||
tls:
|
||||
mode: requireTLS
|
||||
certificateKeyFile: /etc/pki/tls/private/mongodb.pem
|
||||
CAFile: {{ tls_certs }}/ca.crt
|
Loading…
Add table
Add a link
Reference in a new issue