add logrotate_management variable

This commit is contained in:
Roberto Cirillo 2018-09-20 12:41:02 +02:00
parent 06fc023dd0
commit 8b0ce7e61c
1 changed files with 11 additions and 4 deletions

View File

@ -16,7 +16,7 @@ storage:
# where to write logging data.
systemLog:
destination: {{ mongodb_systemlog_destination }}
path: {{ mongodb_logpath }}
{% if mongodb_logrotate_management %}
{% if not mongodb_systemlog_external_logrotate %}
logRotate: rename
logAppend: false
@ -24,10 +24,16 @@ systemLog:
logRotate: reopen
logAppend: true
{% endif %}
{% else %}
logAppend: true
{% endif %}
path: {{ mongodb_logpath }}
# network information
net:
port: {{ mongodb_tcp_port }}
{% if mongodb_bind %}
bindIp: {{ mongo_bind_ip }}
{% endif %}
{% if mongodb_ssl_enabled %}
ssl:
mode: {{ mongodb_ssl_mode }}
@ -39,12 +45,13 @@ net:
#processManagement:
{%if mongodb_cluster_enabled %}
security:
keyFile: /data/mongo_home/dev-d4science-keyfile
keyFile: {{ mongodb_replica_keyfile }}
{%if mongodb_cluster_enabled %}
replication:
oplogSizeMB: 2000
oplogSizeMB: {{ mongodb_oplog_size }}
replSetName: {{ mongodb_replicaset }}
{% endif %}