policy creation in Jamf Pro Presentation objectives: • AutoPkg + JSSImporter - setup and use • Use standard JSS recipes • Roll your own JSS recipes • The future of JSSImporter
Technische Hochschule Zürich Swiss Federal Institute of Technology 21,397 students 9,528 staff 528 professors QS World University Rankings 2019 - 2020 1. MIT 2. Stanford 3. Harvard 4. Oxford 5. Caltech 6. ETH Zürich 7. Cambridge 8. UCL 9. Imperial 10. Chicago Apple @ ETH 3 client engineers 31 Jamf Pro instances 2000 managed clients 120 administrators 100 software titles
iTerm2.jss Didn't find a recipe for io.github.hjuutilainen.pkg.iTerm2. Search GitHub AutoPkg repos for an io.github.hjuutilainen.pkg.iTerm2 recipe? [y/n]: Name Repo Path ---- ---- ---- iTerm2.install.recipe hjuutilainen-recipes iTerm2/iTerm2.install.recipe iTerm2.pkg.recipe hjuutilainen-recipes iTerm2/iTerm2.pkg.recipe iTerm2.munki.recipe hjuutilainen-recipes iTerm2/iTerm2.munki.recipe iTerm2.jss.recipe jss-recipes iTerm2/iTerm2.jss.recipe iTerm2.LANrev.recipe seansgm-recipes LANrevRecipes/iTerm2.LANrev.recipe To add a new recipe repo, use 'autopkg repo-add <repo name>' Could not find parent recipe for iTerm2.jss No valid recipe found for iTerm2.jss
iTerm2.jss Description: Downloads the current release version of iTerm 2 and makes a package. Then, uploads to the JSS. Identifier: com.github.jss-recipes.jss.iTerm2 Builds package: True Recipe file path: /Users/g/Library/AutoPkg/RecipeRepos/ com.github.autopkg.jss-recipes/iTerm2/iTerm2.jss.recipe Parent recipe(s): /Users/g/Library/AutoPkg/RecipeRepos/ com.github.autopkg.hjuutilainen-recipes/iTerm2/iTerm2.pkg.recipe /Users/g/Library/AutoPkg/RecipeRepos/ com.github.autopkg.hjuutilainen-recipes/iTerm2/ iTerm2.download.recipe
autopkg run iTerm2.jss Failed local trust verification. The following recipes failed: iTerm2.jss No trust information present. Nothing downloaded, packaged or imported.
iTerm2.jss The following new items were downloaded: Download Path ------------- /Users/g/Library/AutoPkg/Cache/local.jss.iTerm2/downloads/iTerm2-3_3_4.zip The following packages were built: Identifier Version Pkg Path ---------- ------- -------- com.googlecode.iterm2 3.3.4 /Users/g/Library/AutoPkg/Cache/local.jss.iTerm2/iTerm2-3.3.4.pkg The following changes were made to the Jamf Pro Server: Name Package Categories Groups Scripts Extension Attribute ---- ------- ---------- ------ ------- ------------------- iTerm2 iTerm2-3.3.4.pkg Testing, Computer Science iTerm2-update-smart Processing iTerm2.jss...
autopkg run iTerm2.jss Failed local trust verification. The following recipes failed: iTerm2.jss Parent recipe com.github.jss-recipes.jss.iTerm2 contents differ from expected. Path: /Users/gpugh/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes/iTerm2/ iTerm2.jss.recipe Nothing downloaded, packaged or imported.
<verb> <options>, where <verb> is one of the following: help (Display this help) info (Get info about configuration or a recipe) list-processors (List available core Processors) list-recipes (List recipes available locally) make-override (Make a recipe override) processor-info (Get information about a specific processor) repo-add (Add one or more recipe repo from a URL) repo-delete (Delete a recipe repo) repo-list (List installed recipe repos) repo-update (Update one or more recipe repos) run (Run one or more recipes) search (Search for recipes on GitHub.) version (Print the current version of autopkg) autopkg <verb> --help for more help for that verb Help!
which have newer packages available... Retrieving 5 policies. Please wait... 0: Install Latest AdoptOpenJDK 8 1: Install Latest AdoptOpenJDK 11 2: Install Latest Adobe Creative Cloud 3: Install Adobe Creative Cloud Enter a number to select from list. Please choose an object: No policy specified in args: Building a list of policies which have newer packages available... Retrieving 5 policies. Please wait... 0: Install Latest AdoptOpenJDK 8 1: Install Latest AdoptOpenJDK 11 2: Install Latest Adobe Creative Cloud 3: Install Adobe Creative Cloud Enter a number to select from list. Please choose an object: 3 0: AdobeCCDA-5.0.0.354.pkg (CURRENT) (DEFAULT) Enter a number to select from list. Enter 'F' to expand the options list. Hit <Enter> to accept default choice. Please choose an object: $ jss_helper promote jss_helper
Description: Downloads latest VLC disk image and builds a package. Then, uploads to the Jamf Pro Server. ParentRecipe: com.github.autopkg.pkg.VLC Identifier: com.github.autopkg.jss-upload.VLC MinimumVersion: 0.2.0 NAME: VLC Writing to ./VLC.jss-upload.recipe
pkg_path Array of scripts Once-per-computer or scope based on EA <key>scripts</key> <array> <dict> <key>name</key> <string>%SCRIPT_NAME%.sh</string> <key>template_path</key> <string>%SCRIPT_TEMPLATE%</string> </dict> </array> <key>pkg_path</key> <string></string>