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