Author Posts

February 4, 2016 at 5:54 pm

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.

February 4, 2016 at 6:05 pm

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"
}
}