From 9f8a8341f771de93ea8998238255bf767cb52d30 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Tue, 26 Nov 2013 16:45:33 +0400 Subject: [PATCH] Use stevedore for plugins loading Stevedore is the common approach to load plugins in OpenStack. It provides extremely much more options than current handmade plugins loader. We'll need it espessially for implementing pluggable resources provisioning code. In addition, setting vanilla and hdp as default plugins to make minimal config easier. Implements blueprint use-stevedore Change-Id: I96700bf34417c9bcd24d4f60b2deaa88a8c7c2d9 --- requirements.txt | 1 + setup.cfg | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/requirements.txt b/requirements.txt index a2f6f43..e3a9b8e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,5 +15,6 @@ python-novaclient>=2.15.0 python-swiftclient>=1.5 python-neutronclient>=2.3.0,<3 six>=1.4.1 +stevedore>=0.12 SQLAlchemy>=0.7.8,<=0.7.99 WebOb>=1.2.3,<1.3 diff --git a/setup.cfg b/setup.cfg index 3037f53..1c3aaa9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,6 +33,10 @@ console_scripts = savanna-db-manage = savanna.db.migration.cli:main _savanna-subprocess = savanna.cli.savanna_subprocess:main +savanna.cluster.plugins = + vanilla = savanna.plugins.vanilla.plugin:VanillaProvider + hdp = savanna.plugins.hdp.ambariplugin:AmbariPlugin + [build_sphinx] all_files = 1 build-dir = doc/build