How can I make the xPendingReboot run last

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Aaron Stainback Aaron Stainback 10 months ago.

  • Author
    Posts
  • #34893
    Profile photo of Aaron Stainback
    Aaron Stainback
    Participant

    DependsOn is a pain because I have 4 different things it would have to depend on, I don't really like this.

    It would be great if I could just say last.

  • #34894
    Profile photo of Aaron Stainback
    Aaron Stainback
    Participant

    Actually it's even worse because of the conditional nature of my config I don't even have something I can always depend on.

    Node $AllNodes.Where{$_.Roles -contains "WebRole"}.NodeName
    {
    WebConfiguration Web
    {
    }
    }

    Node $AllNodes.Where{$_.Roles -contains "SmtpRole"}.NodeName
    {
    SmtpConfiguration Smtp
    {
    }
    }

    Node $AllNodes.NodeName
    {
    #This is what I want to make sure runs last everytime
    xPendingReboot Reboot2
    {
    Name = "Reboot2"
    }
    }

You must be logged in to reply to this topic.