Skip to content

Commit bb08b85

Browse files
authored
Update msteams webhook URLs to use mandatory secrets (#2204)
Update webhook URLs to use mandatory secrets Current default never makes sense.
1 parent b285246 commit bb08b85

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

etc/kayobe/kolla.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,11 @@ kolla_enable_prometheus: true
844844

845845
# Extra items to add to kolla_openstack_custom_config_rules_default
846846
# to produce kolla_openstack_custom_config_rules.
847-
#kolla_openstack_custom_config_rules_extra:
847+
kolla_openstack_custom_config_rules_extra:
848+
# Files ending with .example should not be copied
849+
- glob: "**/*.example"
850+
strategy: noop
851+
priority: 1
848852

849853
###############################################################################
850854
# Passwords and credentials.

etc/kayobe/kolla/config/prometheus/prometheus-alertmanager.msteamsv2.yml.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ route:
1818
receivers:
1919
- name: 'msteamsv2-notifications'
2020
msteamsv2_configs:
21-
- webhook_url: '{{ secrets_msteams_notification_channel_url | default('https://prod-01.westeurope.logic.azure.com/workflows/') }}'
21+
- webhook_url: '{{ secrets_msteams_notification_channel_url | ansible.builtin.mandatory(msg="secrets_msteams_notification_channel_url is undefined. Please add this variable to secrets.yml when using the Microsoft Teams Alertmanager integration.") }}'
2222
send_resolved: true
2323
- name: 'msteamsv2-critical-notifications'
2424
msteamsv2_configs:
25-
- webhook_url: '{{ secrets_msteams_notification_critical_channel_url | default('https://prod-01.westeurope.logic.azure.com/workflows/') }}'
25+
- webhook_url: '{{ secrets_msteams_notification_critical_channel_url | ansible.builtin.mandatory(msg="secrets_msteams_notification_critical_channel_url is undefined. Please add this variable to secrets.yml when using the Microsoft Teams Alertmanager integration.") }}'
2626
send_resolved: true
2727

2828
templates:

0 commit comments

Comments
 (0)