Skip to content

Commit

Permalink
config: change format of supplying auditlog config
Browse files Browse the repository at this point in the history
this is done to be able to add auditlog filters
  • Loading branch information
yfoelling committed Apr 20, 2023
1 parent a79083b commit b30c2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
2 changes: 1 addition & 1 deletion templates/mongod.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit b30c2bf

Please sign in to comment.