[Plugins] Allow ElasticSearch config

This commit is contained in:
Victor Woeltjen 2017-01-12 15:07:07 -08:00
parent 116bb2c25f
commit 39eb7ba862

View File

@ -41,12 +41,28 @@ define([
plugins.CouchDB = function (url) {
return function (openmct) {
openmct.legacyRegistry.enable(bundleMap.couchDB);
};
};
plugins.ElasticSearch = function (url) {
return function (openmct) {
var bundleName = "config/elastic";
openmct.legacyRegistry.register(bundleName, {
"extensions": {
"constants": [
{
"key": "ELASTIC_ROOT",
"value": url,
"priority": "mandatory"
}
]
}
});
openmct.legacyRegistry.enable(bundleName);
openmct.legacyRegistry.enable(bundleMap.elasticsearch);
};
};