-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeeds TriagePartner-WinGet
Milestone
Description
Summary of the new feature / enhancement
There is a scenario where the configuration being exported is dynamic rather than statically defined within a configuration doc. Some examples:
- User has manually installed a bunch of applications and configured those apps. They want to export all their apps that have DSCv3 enabled configuration to a single doc. An
exporterresource would be responsible for enumerating those apps and associating them to the relevant DSCv3 resource. - User has configured an IDE (like VSCode), installed a bunch of extensions, configured those extensions. They want to export that entire stack of configuration and apply it to another machine.
In both cases, it doesn't make sense to have the user manually craft a configuration and instead, they want to run export at a top-level application (which may mean in the future we may need to have a meta-resource to represent an entire system that recursively exports).
Proposed technical implementation details (optional)
We allow for an exporter kind of resource that only implements export method. There's at least two ways to support this:
- expectation is that the
exporterreturns not configuration, but resource instances that needexportcalled whichdscengine will handle. In this case,dscwould be the one recursively callingexportwhere there could be a nestedexporterso the user eventually gets a single doc that represents the total configuration - the
exporterresource handles callingexportand potentially recursion and returns a complete configuration that can be applied
I think option 1 makes more sense so that the exporter resource doesn't need to call back out to dsc to then call a resource to export or implement the same functionality that dsc already provides
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeeds TriagePartner-WinGet