Chaining DSC scripts together

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Ciaran.Kelly Ciaran.Kelly 3 months, 3 weeks ago.

  • Author
    Posts
  • #62908
    Profile photo of Ciaran.Kelly
    Ciaran.Kelly
    Participant

    Hi!
    I have 9 seperate DSC scripts to configure a member Server. They do various things like installing windows features, copying files, installing Sql Mgmt Tools, creating and starting services. I'd be grateful to get opinions on how I chain these scripts together – is there something like a "DependsOn" function which you can link to other scripts? Or should I combine them all into one ginormous script?

    thx
    Ciaran

  • #62911
    Profile photo of Don Jones
    Don Jones
    Keymaster

    That's a bigger question than you might think ;). I did an entire chapter in The DSC Book on that, in fact.

    There's no DependsOn like that, no. You can dot source. You can make composite resources. You can use partials. There's a lot of design stuff to consider either way.

    • #62934
      Profile photo of Ciaran.Kelly
      Ciaran.Kelly
      Participant

      Yep – after some reading about my options, I'm beginning to realize theres going to be some work ahead of me. I think I can solve this using composite Resources. I just need to find the time and a quiet room to go figure it out.

      thanks 🙂

You must be logged in to reply to this topic.