I am looking to see if anyone has had experience like I am having using custom triggers and chaining policies together? When we enroll a machine the first policy is set for "At Enrollment" to start it. In the "Files and Processes" section of the policy we put "jamf policy -trigger policy2" in the "execute command" section to trigger the second policy. The second policy is set to custom trigger with the "policy2" and then in the In the "Files and Processes" section of this policy we put "jamf policy -trigger policy3" in the "execute command" section to trigger the third policy and then repeat it for all the policies we have.
This has worked well and typically takes 25 minutes to complete. Before this we would have those same policies all set to "recurring checking" and it would take about an hour so the time is a big improvement.
The only issue we see it that when the policies are chained together that way the "Submit log to the JSS" that runs after each policy does not execute until after all the policies have completed. This causes every log for each of the policies to have all of the log entries for each policy bundled together. It my testing if one policy fails it reports all the ponies chined with it as failed as well even if they succeeded.
Has anyone seen this or found away to make the policies submit their logs as they complete even if they are chained with custom triggers?
I have tried substituting the "jamf policy -trigger ..." in the execute command section with a script that runs after, and even put a sleep 60s in it but that did not work.
If anyone has any suggestions I would appreciate it.
Sean