Only enable keystone notifications if telemetry is enabled

This will get rid of the unnecessary notifications that were being
produced and help with the undercloud's memory consumption.

Change-Id: If4d97e5069ca678edbcd2270a75f6faf67364420
Closes-Bug: #1729293
This commit is contained in:
Juan Antonio Osorio Robles 2017-11-01 15:15:34 +02:00
parent 6939ac649d
commit d60cd84502
1 changed files with 7 additions and 0 deletions

View File

@ -320,8 +320,15 @@ if hiera('tripleo::haproxy::service_certificate', undef) {
$enable_proxy_headers_parsing = false
}
if str2bool(hiera('enable_telemetry', false)) {
$notification_topics = ['notifications']
} else {
$notification_topics = []
}
class { '::keystone':
enable_proxy_headers_parsing => $enable_proxy_headers_parsing,
notification_topics => $notification_topics,
}
include ::keystone::wsgi::apache
include ::keystone::cron::token_flush