Implement a https:// in REST alarm notification

This change adds schemes https:// to the alarm notifier.

By default, the server certificate is verified like a browser does
but with the system CA.

A client certificate can be set in the configuration file.

 [alarm]
 rest_notifier_certificate_file = /path/certificate.pem
 rest_notifier_certificate_key = /path/private_key.pem

Change-Id: Id06e0a45ef88c15674052faeb941d87b70c7b99b
Blueprint: alarm-notifier
This commit is contained in:
Mehdi Abaakouk
2013-07-16 12:15:32 +02:00
parent 0b50ac2f59
commit fc9b416a47
5 changed files with 102 additions and 19 deletions

View File

@@ -104,6 +104,7 @@ ceilometer.alarm.notifier =
log = ceilometer.alarm.notifier.log:LogAlarmNotifier
test = ceilometer.alarm.notifier.test:TestAlarmNotifier
http = ceilometer.alarm.notifier.rest:RestAlarmNotifier
https = ceilometer.alarm.notifier.rest:RestAlarmNotifier
paste.filter_factory =
swift = ceilometer.objectstore.swift_middleware:filter_factory