hamlet-io / engine

Framework for managing cloud infrastructure via templates. It is part of the broader Hamlet devops framework.
GNU General Public License v3.0
5 stars 5 forks source link

Load Modules from CMDBs #1446

Open roleyfoley opened 3 years ago

roleyfoley commented 3 years ago

Current Behaviour

With #1439 we introduced the ability to load scenarios that have been implemented in a provider. To use and develop scenarios you need to essentially create your own provider and include the scenarios as part of this provider.

Expected Behaviour

For solutions with highly repeated components you might want to develop a solution or product specific set of scenarios that are repeated across your product but might not be suitable for other products

Possible Solution

Include scenarios in our CMDB layout and load them as part of the boostrap process for process generation

Context

This would allow for users to develop their own scenarios as part of an isolated product

RossMurr4y commented 3 years ago

I would add to this a "nice to have" feature - probably not in the MVP though - of the following:

roleyfoley commented 3 years ago

Would we do that at the provider level or the module level? My thinking was to do it as part of #1447 at the plugin/provider level instead

RossMurr4y commented 3 years ago

Re-reading your initial description I can see that I've misunderstood - ...but might not be suitable for other products. So my suggestion isn't really related to your original intent here. I think what I've touched on is that the utility of the module is greater than any one use-case.

Here's how I see the breakdown:

At the module level, all of these could be implemented. However given the experience/knowledge overhead required to implement them at the provider level, there are fewer people who will be able to make use of this functionality there.