-
-
Notifications
You must be signed in to change notification settings - Fork 41
Allows skipping upload of group/policy if template is explicitly 'False' #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hi, I guess that's an interesting idea though I'm a little reluctant to add a feature that nobody could really use without writing their own custom processor. However, my initial thoughts are that if this was to be implemented, I would not like to use the What could be interesting is to have a This would give a set of interesting options:
Since this would be independent of the template key, all of the JamfUploader processor could theoretically have these options. |
|
I like the create_policy option -- I'll update the branch in the PR accordingly, as soon as I am able. My apologies for the duplicate reply. |
Processor failed when used against `jamf_protect_register` as was attempting to get an object ID with get_api_obj_id_from_name. This object type does not have an ID or name and always expects a payload to be POSTed to it. Should be handled correctly with this change (have tested with `_settings` `_command` and `os_x_configuration_profile` object types and all upload as expected).
Update JamfObjectUploaderBase.py - handle _register object types
Add failover_generate_command endpoint
Output failover URL if object type is `failover_generate_command`
Add support for Failover URL generation and output
Jamf protect settings
add status check
Add URL to slack webhook
handle empty data
fix error messaging for missing keys
consolidate patch headers
…erBase Decouple webhook processors and streamline URL handling
…objeect reference
Add Platform API support and refactor for compatibility
Add elements-to-retain functionality
Enhance test script and handle output format uncertainty
fix oauth token generation
The processor
StopProcessingIfis 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
Inputdictionary 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 inJamfComputerGroupUploaderandJamfPolicyUploader. 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_templateandpolicy_templatearguments. Alternatively, a new argument could be added, if this was thought to be a better approach.