diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-03-27 17:26:42 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-27 17:28:34 +0100 |
commit | ddb612efc3df7d6b0dddf7ea4fdfcb3133bec701 (patch) | |
tree | c91da5c20439a3fd526b091abea834355cea3657 | |
parent | 68f1702e19c170c9e94020108dee8b042a702e21 (diff) | |
download | sos-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.py | 8 |
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): |