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