Skip to content

Commit

Permalink
Update Ansible role for new logging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed Feb 17, 2024
1 parent 6d1720f commit 644d86a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ Available role variables
* ``folder_error``: (string, default ``"Invalid"``): IMAP mailbox that emails are moved to that could not be processed.
* ``poll_interval_seconds`` (number, default ``60``): How often to poll the IMAP server in seconds.
* ``deduplication_max_seconds`` (number, default ``604800`` which is 7 days): How long individual report IDs will be remembered to avoid counting double delivered reports twice.
* ``logging_config`` (map, default ``{}``): Logging configuration, see main documentation for details.
2 changes: 2 additions & 0 deletions roles/dmarc_metrics_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ imap_verify_certificate: yes
poll_interval_seconds: 60
deduplication_max_seconds: 604800

logging_config: {}

folder_inbox: "INBOX"
folder_done: "Archive"
folder_error: "Invalid"
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
},
"storage_path": "/var/lib/dmarc-metrics-exporter",
"poll_interval_seconds": {{ poll_interval_seconds }},
"deduplication_max_seconds": {{ deduplication_max_seconds }}
"deduplication_max_seconds": {{ deduplication_max_seconds }},
"logging": {{ logging_config | to_json }}
}

0 comments on commit 644d86a

Please sign in to comment.