Skip to content

Commit

Permalink
Reduce redundant Cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pirie committed Nov 17, 2024
1 parent 522a099 commit 761351c
Show file tree
Hide file tree
Showing 22 changed files with 207 additions and 64 deletions.
9 changes: 5 additions & 4 deletions AdobeAdminConsole/AdobeAdminConsole.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Description: |
For use with DataJAR's AdobeAdminConsolePackagesImporter.py.
Using the information gathered by AdobeAdminConsolePackagesImporter.py,
copies the identified pkg to the recipe cache dir, then uploads the
package to Jamf Pro.
uploads the identified pkg to Jamf Pro.
Intended use is to generate an override from this recipe, then
give the override an unique Identifier and populate all the
Expand All @@ -22,7 +21,6 @@ Description: |
Identifier: com.github.davidbpirie.jamf-upload.AdobeAdminConsole
MinimumVersion: 2.3.0
ParentRecipe: com.github.davidbpirie.pkg.AdobeAdminConsole

Input:
NAME: AdobeAdminConsole
Expand All @@ -36,15 +34,18 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'
aacp_application_architecture_type: Populate with AdobeAdminConsolePackagesImporter.py
aacp_application_description: Populate with AdobeAdminConsolePackagesImporter.py
aacp_application_install_lang: Populate with AdobeAdminConsolePackagesImporter.py
aacp_application_version: Populate with AdobeAdminConsolePackagesImporter.py
aacp_package_path: Populate with AdobeAdminConsolePackagesImporter.py

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%_%aacp_application_install_lang%_%aacp_application_architecture_type%-%aacp_application_version%.pkg'
pkg_name: '%JAMF_PKG_NAME%_%aacp_application_install_lang%_%aacp_application_architecture_type%-%aacp_application_version%.%JAMF_PKG_SUFFIX%'
pkg_path: '%aacp_package_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%aacp_application_description%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand Down
10 changes: 9 additions & 1 deletion AdobeReader/AdobeReader.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Description: |
Downloads the current Adobe Acrobat Reader pkg and repackages,
replacing a problematic preinstall script, and enabling installation
on non-boot volumes, then uploads the package to Jamf Pro.
on non-boot volumes, then uploads the package to Jamf Pro and
deletes the package.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
Expand All @@ -25,11 +26,13 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_path: '%pkg_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand All @@ -40,3 +43,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
5 changes: 5 additions & 0 deletions Avid/AvidProTools.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
8 changes: 7 additions & 1 deletion Avid/AvidProToolsPlugin.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Description: |
Copies the plug-in installer pkg from the source DMG, verifying
the signature and extracting the version, then uploads the package to Jamf Pro.
the signature and extracting the version, then uploads the package to Jamf Pro
and deletes the package.
All Pro Tools plug-ins include a <plugin> AppMan.pkg component,
so version information is read from there.
Expand Down Expand Up @@ -49,3 +50,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
7 changes: 6 additions & 1 deletion Avid/AvidSibelius.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Description: |
Copies the Sibelius pkg from the source DMG, verifying the signature and
extracting the version, then creates a package that installs the Sibelius
pkg via a postinstall script, applying a custom set of choices, then
uploads the package to Jamf Pro.
uploads the package to Jamf Pro and deletes the package.
Package source DMG must be manually downloaded from Avid, then provided
either as Input Variable PKG or via the -p parameter eg:
Expand Down Expand Up @@ -54,3 +54,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
8 changes: 7 additions & 1 deletion Blackmagic/BlackmagicATEMSwitchers.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Description: |
Downloads latest version of ATEM Switcher disk image, copies
the package from the DMG, then uploads the package to Jamf Pro.
the package from the DMG, then uploads the package to Jamf Pro
and deletes the package.
This product requires registration in order to download, so
you _must_ override all input variables beginning with 'REG_'
Expand Down Expand Up @@ -48,3 +49,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
8 changes: 7 additions & 1 deletion Blackmagic/BlackmagicConverters.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Description: |
Downloads latest version of Blackmagic Converters disk image, copies
the package from the DMG, then uploads the package to Jamf Pro.
the package from the DMG, then uploads the package to Jamf Pro and
deletes the package.
This product requires registration in order to download, so
you _must_ override all input variables beginning with 'REG_'
Expand Down Expand Up @@ -48,3 +49,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
7 changes: 6 additions & 1 deletion Blackmagic/BlackmagicDaVinciResolve.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Description: |
Downloads latest version of DaVinci Resolve disk image, then
copies the package from the DMG, extracting the version, then
uploads the package to Jamf Pro.
uploads the package to Jamf Pro and deletes the package.
This product requires registration in order to download, so
you _must_ override all input variables beginning with 'REG_'
Expand Down Expand Up @@ -54,3 +54,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
7 changes: 6 additions & 1 deletion Blackmagic/BlackmagicDesktopVideo.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Description: |
Downloads latest version of Desktop Video disk image, then
copies the package from the DMG, extracting the version, then
uploads the package to Jamf Pro.
uploads the package to Jamf Pro and deletes the package.
This product requires registration in order to download, so
you _must_ override all input variables beginning with 'REG_'
Expand Down Expand Up @@ -52,3 +52,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
7 changes: 6 additions & 1 deletion Blackmagic/BlackmagicWebPresenter.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Description: |
Downloads latest version of Web Presenter disk image, then
copies the package from the DMG, extracting the version, then
uploads the package to Jamf Pro.
uploads the package to Jamf Pro and deletes the package.
This product requires registration in order to download, so
you _must_ override all input variables beginning with 'REG_'
Expand Down Expand Up @@ -49,3 +49,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
9 changes: 8 additions & 1 deletion Blender/Blender.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%_%ARCHITECTURE%-%version%.pkg'
pkg_name: '%JAMF_PKG_NAME%_%ARCHITECTURE%-%version%.%JAMF_PKG_SUFFIX%'
pkg_path: '%pkg_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand All @@ -41,3 +43,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
7 changes: 7 additions & 0 deletions EIZO/ColorNavigator7.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/repack'
11 changes: 9 additions & 2 deletions GoogleChrome/GoogleChrome.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Description: |
Downloads latest Google Chrome disk image and builds a package, then
uploads the package to Jamf Pro.
uploads the package to Jamf Pro and deletes the package.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
Expand All @@ -23,11 +23,13 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_name: '%JAMF_PKG_NAME%-%version%.%JAMF_PKG_SUFFIX%'
pkg_path: '%pkg_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand All @@ -38,3 +40,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
13 changes: 10 additions & 3 deletions MicrosoftDefender/MicrosoftDefender.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Description: |
Downloads the latest Microsoft Defender pkg,
then uploads the package to Jamf Pro.
Downloads the latest Microsoft Defender pkg, then uploads the package
to Jamf Pro and deletes the package.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
Expand All @@ -23,11 +23,13 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_name: '%JAMF_PKG_NAME%-%version%.%JAMF_PKG_SUFFIX%'
pkg_path: '%pkg_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand All @@ -38,3 +40,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
12 changes: 10 additions & 2 deletions MicrosoftEdge/MicrosoftEdge.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Description: |
Downloads the latest Microsoft Edge pkg, and appends the version
to the end of the filename, then uploads the package to Jamf Pro.
to the end of the filename, then uploads the package to Jamf Pro
and deletes the package.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
Expand All @@ -23,11 +24,13 @@ Input:
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'
JAMF_PKG_SUFFIX: 'pkg'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_name: '%JAMF_PKG_NAME%-%version%.%JAMF_PKG_SUFFIX%'
pkg_path: '%pkg_path%'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
Expand All @@ -38,3 +41,8 @@ Process:
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'

- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
Loading

0 comments on commit 761351c

Please sign in to comment.