Skip to content

Instantly share code, notes, and snippets.

@grahampugh
Created May 13, 2022 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahampugh/d70fff8935f656ac242ec4163d5be706 to your computer and use it in GitHub Desktop.
Save grahampugh/d70fff8935f656ac242ec4163d5be706 to your computer and use it in GitHub Desktop.
Firefox.jamf in PLIST format
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest version of Firefox and makes a pkg. Then, uploads the package to the Jamf Pro Server and creates a Self Service Policy and Smart Group.
</string>
<key>Identifier</key>
<string>com.example.jamf.Firefox</string>
<key>Input</key>
<dict>
<key>CATEGORY</key>
<string>Productivity</string>
<key>GROUP_NAME</key>
<string>%NAME%-update-smart</string>
<key>GROUP_TEMPLATE</key>
<string>JamfSmartGroupTemplate.xml</string>
<key>NAME</key>
<string>Firefox</string>
<key>POLICY_CATEGORY</key>
<string>Testing</string>
<key>POLICY_NAME</key>
<string>Install Latest %NAME%</string>
<key>POLICY_TEMPLATE</key>
<string>JamfPolicyTemplate.xml</string>
<key>SELF_SERVICE_DESCRIPTION</key>
<string>Mozilla Firefox is a free and open source web browser.</string>
<key>SELF_SERVICE_DISPLAY_NAME</key>
<string>Install Latest %NAME%</string>
<key>SELF_SERVICE_ICON</key>
<string>%NAME%.png</string>
<key>TESTING_GROUP_NAME</key>
<string>Testing</string>
<key>UPDATE_PREDICATE</key>
<string>pkg_uploaded == False</string>
</dict>
<key>MinimumVersion</key>
<string>2.3</string>
<key>ParentRecipe</key>
<string>com.github.autopkg.pkg.Firefox_EN</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>category_name</key>
<string>%CATEGORY%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>category_name</key>
<string>%CATEGORY%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfPackageUploader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>predicate</key>
<string>%UPDATE_PREDICATE%</string>
</dict>
<key>Processor</key>
<string>StopProcessingIf</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>computergroup_name</key>
<string>%GROUP_NAME%</string>
<key>computergroup_template</key>
<string>%GROUP_TEMPLATE%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfComputerGroupUploader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>category_name</key>
<string>%POLICY_CATEGORY%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfPackageUploader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>icon</key>
<string>%SELF_SERVICE_ICON%</string>
<key>policy_name</key>
<string>%POLICY_NAME%</string>
<key>policy_template</key>
<string>%POLICY_TEMPLATE%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment