Skip to content

Commit 5c9ad97

Browse files
committedMar 26, 2020
[HOTFIX] Sane defaults for slack logging config
1 parent 8db24e0 commit 5c9ad97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎group_vars/all.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ aws_s3_bucket_policies: []
406406

407407
# AWS Logs + slack notifications settings
408408
aws_logs_slack_hook_url: "{{ mageops_notifications_slack_hook_url | default(None) }}"
409-
aws_logs_slack_channel: "{{ mageops_notifications_slack_channel }}"
409+
aws_logs_slack_channel: "{{ mageops_notifications_slack_channel | default(none, true) }}"
410+
aws_logs_slack_notifications: "{{ mageops_notifications_slack_enable }}"
410411

411412
aws_logs_loggers_persistent_default:
412413
syslog: { enabled: yes }
@@ -1481,4 +1482,5 @@ ntp_timezone: "{{ mageops_timezone }}"
14811482
# -------- Notifications Common Settings --------
14821483
# -------------------------------------------------
14831484

1484-
mageops_notifications_slack_channel: "#mage-errors"
1485+
mageops_notifications_slack_channel: ~
1486+
mageops_notifications_slack_enable: "{{ mageops_notifications_slack_channel | default('') | length > 0 }}"

0 commit comments

Comments
 (0)
Please sign in to comment.