Author Posts

November 15, 2015 at 2:07 am

I've just discovered the MVA on DSC and it's fantastic.
I had one question on best practices for Pull configurations.
I can assign the same guid to multiple machines that need to have the same configuration and I get that. What I want to know is how do people deal with one or more of these machines needing something extra DSC wise that the other machines with the same guid dont? Do you modify the resource with logic that checks the incoming computer name to define the extra bits or do you push the extra bits or do you do something else?
David Z

November 15, 2015 at 5:53 am

Well that's kind of the thing. If they're all pulling the same GUID, you don't really get to do differences. However, what you're after is in v5, partial configurations. You can have one master config that they all use, and then multiple machine specific ones for the machine stuff.

November 15, 2015 at 11:53 am

Thanks – I guess v5 it is then. I wonder if v5 will address multiple layered hierarchies? Like having one "master" config for all servers, then another for all file servers, than another for 2012 file servers and a separate one for 2008 file severs etc.
I guess one simple method of achieving that is to be able to assign any number of Guids to a pull client.

November 15, 2015 at 11:57 am

You can tell any machine to pull multiple partials. So yeah, you can set that up. It's not magic – a machine doesn't pull a special config based on its Windows version. But you can tell it to pull one with that intent.

November 15, 2015 at 9:16 pm

The OS thing was really just an example of what people might expect from a partial configuration. The fact that configurations might be multi levelled. From what I can see on the doco for partial configurations is that for each different config, you need to specify a different pull server. I would've preferred the multi guid model myself.

November 16, 2015 at 3:34 am

No, you don't actually need multiple pull servers. And v5 doesn't have to use GUIDs – what you read was outdated. You now specify a configuration name for each config, and they can all come from one server if you want.

November 17, 2015 at 11:41 am

Thanks for that – this DSC thing is changing so fast!