add systemLog.logRotate option as configurable
This commit is contained in:
parent
5739b0b9df
commit
a77efe008d
|
@ -53,6 +53,7 @@ mongodb_storage_prealloc: true # Enable data file preallocatio
|
||||||
## If you specify 'file', you must also specify mongodb_systemlog_path.
|
## If you specify 'file', you must also specify mongodb_systemlog_path.
|
||||||
mongodb_systemlog_destination: "file"
|
mongodb_systemlog_destination: "file"
|
||||||
mongodb_systemlog_logappend: true # Append to logpath instead of over-writing
|
mongodb_systemlog_logappend: true # Append to logpath instead of over-writing
|
||||||
|
mongodb_systemlog_logrotate: "rename" # Logrotation behavior
|
||||||
mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
|
mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
|
||||||
|
|
||||||
## replication Options
|
## replication Options
|
||||||
|
|
|
@ -50,6 +50,7 @@ systemLog:
|
||||||
destination: {{ mongodb_systemlog_destination }}
|
destination: {{ mongodb_systemlog_destination }}
|
||||||
{% if mongodb_systemlog_destination == 'file' -%}
|
{% if mongodb_systemlog_destination == 'file' -%}
|
||||||
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
||||||
|
logRotate: {{ mongodb_systemlog_logrotate }}
|
||||||
path: {{ mongodb_systemlog_path }}
|
path: {{ mongodb_systemlog_path }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -38,5 +38,6 @@ systemLog:
|
||||||
destination: {{ mongodb_systemlog_destination }}
|
destination: {{ mongodb_systemlog_destination }}
|
||||||
{% if mongodb_systemlog_destination == 'file' -%}
|
{% if mongodb_systemlog_destination == 'file' -%}
|
||||||
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
||||||
|
logRotate: {{ mongodb_systemlog_logrotate }}
|
||||||
path: {{ mongodb_systemlog_path }}
|
path: {{ mongodb_systemlog_path }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
Loading…
Reference in New Issue