From b30c2bf000e59e865d09ef3e3eac6386f0496fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20F=C3=B6lling?= Date: Thu, 20 Apr 2023 13:56:13 +0200 Subject: [PATCH] config: change format of supplying auditlog config this is done to be able to add auditlog filters --- defaults/main.yml | 5 +---- templates/mongod.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index d9823635..be681ed7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -157,7 +157,4 @@ mongo_operationprofiling: slowOpThresholdMs: "{{ mongodb_operation_profiling_slow_op_threshold_ms }}" mode: "{{ mongodb_operation_profiling_mode }}" -mongo_auditlog: - destination: file - format: "{{ mongodb_auditlog_format }}" - path: "{{ mongodb_auditlog_path }}" +mongo_auditlog: "{{ mongodb_auditlog }}" diff --git a/templates/mongod.conf.j2 b/templates/mongod.conf.j2 index 692ccc03..e76241f0 100644 --- a/templates/mongod.conf.j2 +++ b/templates/mongod.conf.j2 @@ -52,7 +52,7 @@ setParameter: {% if mongodb_auditlog %} auditLog: -{{ mongo_auditlog | to_nice_yaml(indent=2) | indent(width=2, first=True) }} +{{ mongo_auditlog_config | to_nice_yaml(indent=2) | indent(width=2, first=True) }} {% else %} #auditLog: {% endif %}