Allows skipping upload of group/policy if template is explicitly 'False' #94
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The processor
StopProcessingIf
is useful if one wants to stop processing if a certain condition exists, but isn't as handy if you want the rest of the recipe process to proceed except a particular step.This change would allow a recipe to be written with multiple groups and policies, optionally skipping one or more based on
Input
dictionary values, or more importantly, based on those values in an override.In my specific use case, a custom processor is being used to evaluate a list of 'allowed' and 'required' group names obtained via recipe
Input
, write custom group (using that criteria) and policy templates, then output the relevant values for use inJamfComputerGroupUploader
andJamfPolicyUploader
. With this change the processors are then be able to upload or skip the relevant groups and policies; this has cut down the complexity of our recipes and reduced the number of templates needed.For simplicity, I evaluated the existing
computergroup_template
andpolicy_template
arguments. Alternatively, a new argument could be added, if this was thought to be a better approach.