I have a DSC Configuration that gets applied to 70 servers. We recycle the AppPool nightly on each server but we do not want all of them recycling at once. We basically have a naming format such as
Server001 - Server070
The way we split this out is by what we call a POD ID, which is basically the numeric portion of the Server Name modulus the number of Pods we want.
Server004 = 004 % 4 which would make the POD = 0
Then based on which POD ID the server is part of we assign a time for the app pool recycle starting at POD 0 = 1:00 AM , POD 1 = 1:15 AM, etc.
The issue I am having is when using ConfigNames I have no way to identify the server name so the Pod can be calculated and the correct recycle time applied to the machine via the DSC config.
Does anyone know of a way I can accomplish this without creating separate configs? I have tried using the Script Resource but I have no idea how to pass back a information between the setscript and testscript blocks
Any help is appreciated.