Ryan Petrello
0c6be1f4d7
Merge branch 'downstream' into devel
2020-08-05 14:48:36 -04:00
Graham Mainwaring
b7f37d5e26
Reduce error detail in webhook notification
2020-07-06 21:17:21 -04:00
Florian Apolloner
e9e410f4f8
Send content-type with mattermost notifications, fixes #7264
2020-06-09 10:32:32 -04:00
Florian Apolloner
cf6235f6ea
Send content-type with mattermost notifications, fixes #7264
2020-06-08 16:30:52 +02:00
beeankha
0d7af90e8c
Update Pagerduty and Grafana approval notifications
2020-05-27 13:03:28 -04:00
beeankha
09e62df84a
Fix approval notifications for PagerDuty
2020-05-26 15:47:30 -04:00
beeankha
bc4d789da0
Remove HipChat notification type
2020-05-19 15:00:27 -04:00
Ryan Petrello
771ca2400a
don't send tags to the Grafana annotations API if none are specified
...
see: https://github.com/ansible/awx/issues/6580
2020-04-06 15:47:48 -04:00
Ryan Petrello
6207dad226
fix broken grafana notifications
...
since the custom notification template refactor, grafana notification
support has been broken; this is largely because grafana functions more
like the webhooks, and needs to send JSON in its notification body
see: https://github.com/ansible/awx/issues/6137
2020-03-03 12:44:28 -05:00
beeankha
334c63388b
Revert original quotation mark configuration for non-approval default msg and body
2019-12-05 12:11:56 -05:00
beeankha
32f6f87463
Change quotation mark format for sconsistency and also to comply with qa tests
2019-12-05 12:11:50 -05:00
beeankha
0d92b2e703
Enable approval-related email notifications to send properly
2019-12-05 12:11:43 -05:00
Ryan Petrello
171f0d6340
Merge branch 'downstream' into devel
2019-10-29 13:02:17 -04:00
Jim Ladd
71d7bac261
Rename job_summary_dict to job_metadata
...
* Clarifies purpose of notification template variable
2019-10-29 11:24:14 -04:00
Jim Ladd
da7002cf0c
Don't use i18n for NT body string
2019-10-29 11:24:14 -04:00
Jim Ladd
4809c40f3c
Render WF approval notifications w/ custom templates
2019-10-29 11:24:13 -04:00
Jim Ladd
4e9ec271c5
Refactor notification backends to use CustomNotificationBase
2019-10-29 11:24:13 -04:00
Jim Ladd
6cd6a42e20
Render default notifications using Jinja templates
2019-10-29 11:24:13 -04:00
Guillaume Marsay
31a96d20ab
Update slack_backend.py
2019-10-26 22:07:31 +02:00
Jim Ladd
a10ad58c75
Use custom webhook bodies as is (instead of as a sub-field in webhook)
2019-08-25 23:11:25 -07:00
Jim Ladd
24c3903c30
add debug info for failed slack notification
2019-08-24 20:37:59 -07:00
Jim Ladd
7bf250ecfa
show default messages in options
2019-08-24 20:37:59 -07:00
beeankha
7580491f1a
Add migration file to define http_method explicitly
2019-07-23 14:52:26 -04:00
beeankha
04404c93db
Enforce http_method restrictions via API
2019-07-23 11:47:19 -04:00
beeankha
6ef235dcd5
Enable auth header to send with just username field filled in
2019-07-23 11:47:19 -04:00
beeankha
99737937cd
No auth header sent if username/password fields are blank
2019-07-23 11:47:19 -04:00
beeankha
6e9f74eb17
Updating tests, changing 'method' to 'http_method'
2019-07-23 11:47:19 -04:00
beeankha
52b01feafe
Change init parameter name to 'http_method' to reduce ambiguity
2019-07-23 11:47:19 -04:00
beeankha
fbb3fd2799
Add custom HTTP method
2019-07-23 11:47:19 -04:00
beeankha
5071e1c75f
Update webhook backend to take username/password
2019-07-23 11:47:19 -04:00
beeankha
6f030256f5
Add username and password fields to webhook backend
2019-07-23 11:47:19 -04:00
zicklam
42f30e72b5
False is not false
2019-05-08 08:35:26 +02:00
zicklam
0fb3851a2b
webhook_notification set default for var 'disable_ssl_verification'
2019-05-08 08:21:04 +02:00
zicklam
08d60d0b78
Update test_notification Template for webhooks
...
- rename webhook_no_verify_ssl to disable_ssl_verification
2019-05-06 19:20:00 +02:00
zicklam
5b8fba58e8
Add "Disable SSL Verification" checkbox to webhook notification
...
This commit will add a checkbox which will disable SSL verification on
the generic webhook notification type. This is required when using
self-signed certificates.
2019-05-06 13:12:41 +02:00
beeankha
3e13eff7f4
Change serializer to take in init paramdefault value
2019-03-21 15:22:34 -04:00
beeankha
c9ac805eed
[WIP] Provide Default Email Timeout Value
2019-03-20 16:17:48 -04:00
beeankha
66a52655df
Change email notification success/fail messages and add a timeout feature
2019-03-14 16:37:22 -04:00
Sebastian
4058d18593
Add grafana notification type
2019-01-20 13:51:23 +01:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
Shane McDonald
580004b395
Merge remote-tracking branch 'downstream/release_3.3.0' into devel
...
# Conflicts:
# awx/main/notifications/slack_backend.py
2018-09-18 08:11:50 -04:00
Ryan Petrello
4bc63cc37e
fix a bug that broke bot avatars for Slack notifications
...
when a *color* is specified for a Slack notification template, we use
the *web* not the RTM API; when you use a bot with the web API, you have
to specify the `as_user=True` argument to have the message use the bot's
name and avatar
see: https://github.com/ansible/tower/issues/2883
see: https://github.com/ansible/awx/issues/2187
2018-08-22 10:57:13 -04:00
walkafwalka
0b9726a3ed
Standardize Slack backend API method
...
Signed-off-by: walkafwalka <41709139+walkafwalka@users.noreply.github.com >
2018-08-02 05:31:38 +00:00
Jeandre Le Roux
fd12c44ada
Add Rocket.Chat notification type
...
Summary: Add Rocket.Chat notification type
Issue type: Feature Pull Request
Component: Notifications
Signed-off-by: Jeandre Le Roux <theblazehen@theblazehen.com >
2018-03-21 10:02:50 +02:00
paihu
dfea3a4b95
fix: broken backward compatibility
...
fix: param hex_color isn't optional
Signed-off-by: paihu <paihu_j@yahoo.co.jp >
2018-03-13 18:04:47 +09:00
paihu
9b5e088d70
support slack color notification #1490
...
Signed-off-by: paihu <paihu_j@yahoo.co.jp >
2018-03-12 14:14:44 +09:00
Matthew Jones
8505783350
Merge remote-tracking branch 'tower/release_3.2.3' into devel
...
* tower/release_3.2.3:
fix unicode bugs with log statements
use --export option for ansible-inventory
add support for new "BECOME" prompt in Ansible 2.5+ for adhoc commands
enforce strings for secret password inputs on Credentials
fix a bug for "users should be able to change type of unused credential"
fix xss vulnerabilities - on host recent jobs popover - on schedule name tooltip
fix a bug when testing UDP-based logging configuration
bump templates form credential_types page limit
Wait for Slack RTM API websocket connection to be established
don't process artifacts from custom `set_stat` calls asynchronously
don't overwrite env['ANSIBLE_LIBRARY'] when fact caching is enabled
only allow facts to cache in the proper file system location
replace our memcached-based fact cache implementation with local files
add support for new "BECOME" prompt in Ansible 2.5+
fix a bug in inventory generation for isolated nodes
properly handle unicode for isolated job buffers
2018-02-20 12:22:25 -05:00
Wayne Witzel III
aa469d730e
Wait for Slack RTM API websocket connection to be established
2018-01-24 13:48:42 +00:00
Romain Brucker
cdc6096515
fixing indent
2017-09-28 11:37:07 -05:00
Romain Brucker
31e559b6a1
Checking if color is not None before setting it to lowercase
2017-09-28 11:33:45 -05:00