aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2017-03-27 17:26:42 +0200
committerBryn M. Reeves <bmr@redhat.com>2017-03-27 17:28:34 +0100
commitddb612efc3df7d6b0dddf7ea4fdfcb3133bec701 (patch)
treec91da5c20439a3fd526b091abea834355cea3657
parent68f1702e19c170c9e94020108dee8b042a702e21 (diff)
downloadsos-ddb612efc3df7d6b0dddf7ea4fdfcb3133bec701.tar.gz
[gnocchi] Missing "packages = .." causes plugins runs everytime
Specify packages plugin variable to run the plugin only on systems with gnocchi installed. Resolves: #977 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/gnocchi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sos/plugins/gnocchi.py b/sos/plugins/gnocchi.py
index dd4b8224..ec392f8e 100644
--- a/sos/plugins/gnocchi.py
+++ b/sos/plugins/gnocchi.py
@@ -21,7 +21,15 @@ from sos.plugins import Plugin, RedHatPlugin
class GnocchiPlugin(Plugin, RedHatPlugin):
"""Gnocchi - Metric as a service"""
plugin_name = "openstack_gnocchi"
+
profiles = ('openstack', 'openstack_controller')
+
+ packages = (
+ 'openstack-gnocchi-metricd', 'openstack-gnocchi-common',
+ 'openstack-gnocchi-statsd', 'openstack-gnocchi-api',
+ 'openstack-gnocchi-carbonara'
+ )
+
requires_root = False
def setup(self):