devblackops / POSHOrigin

PowerShell framework for defining and invoking custom DSC resources to provision infrastructure.
Apache License 2.0
56 stars 3 forks source link

Resource reuse (modules) #5

Closed devblackops closed 8 years ago

devblackops commented 8 years ago

It would be nice to come up with a way to package a collection of resource definitions up for reuse. Options for the resources returned from loading the module could then be overridden by the process that calls the module.

Create 10 servers using the prepackaged 'xl_gold' module
(1..10) | % {
    module 'compute_xl_gold' @{
        source = '.\modules\compute\xl_gold'
        name = "server$_"
    }
}
devblackops commented 8 years ago

This was fixed in #6