Skip to content

Commit

Permalink
Merge pull request #24 from coopdevs/fix-backup-module
Browse files Browse the repository at this point in the history
fix backup path & folder path
  • Loading branch information
jordiisidro authored Jun 8, 2022
2 parents f97a8ba + 01a1eb7 commit 5ff94c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ monitoring_promtail_modules_enabled:
monitoring_promtail_modules_available:
backups:
# Use backups-role var if available.
log_path: "{{ backups_role_cron_stdout_file | default('/var/log/cron.d/restic-std{err,out}.log') }}"
log_path: "{{ backups_role_cron_stdout_file | default('/var/log/cron.d/restic-std*.log') }}"
template: "backups-role.j2"
log_path_folder: "{{ backups_role_cron_std_folder | default('/var/log/cron.d') }}"
odoo:
# Use odoo-role var if available.
log_path: "{{ odoo_role_odoo_log_path | default('/var/log/odoo') }}/odoo.log"
Expand Down
2 changes: 1 addition & 1 deletion templates/monitoring-docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
volumes:
- {{ monitoring_promtail_config_dir }}:{{ monitoring_promtail_config_dir }}
{% for module in monitoring_promtail_modules_enabled %}
{% set log_path = monitoring_promtail_modules_available[module]["log_path"] %}
{% set log_path = monitoring_promtail_modules_available[module]["log_path_folder"] %}
- {{ log_path }}:{{ log_path }}:ro
{% endfor %}
# healthcheck:
Expand Down

0 comments on commit 5ff94c0

Please sign in to comment.