Role configuration.

Welcome Forums DSC (Desired State Configuration) Role configuration.

This topic contains 2 replies, has 2 voices, and was last updated by

1 year, 9 months ago.

  • Author
  • #72185

    Points: 21
    Rank: Member

    I've looked at partials and using configuration data but it seems a bit complex for what I'm doing. We have only three types of servers, generic base build, sql, and IIS. I have the basebuild config complete and now I add the role if required.

    I can push a separate configuration after the base build is complete but wondering if there is any reason to avoid scripting inside the node block? Something like this..

    Configuration Basebuild {
    Node $ComputerName {
    file requiredfiles{}
    registry regitems{}
    if($role -eq 'iis'){
    WindowsFeature IIS 
          Ensure = “Present” 
          Name = “Web-Server” 
  • #72425

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Nope. No reason at all. It's one of the modularization techniques we discuss in "The DSC Book," in fact.

  • #72515

    Points: 21
    Rank: Member

    I'll have to read it a third time:)

The topic ‘Role configuration.’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort