Endpoint Services, Munki, Using Conditions in Manifests
This article provides information on using conditional arrays in Munki manifests.
Munki Mac Endpoint Management
University of Illinois IT Pros leveraging Technology Services Endpoint Services' Munki Mac Endpoint Management
Munki allows for the conditional installation or removal of items based on certain conditions. Using conditions in your Munki manifests can cut down on the number of superfluous Munki warnings appearing in your MunkiReport dashboard. Adding conditions to require a minimum or maximum version of macOS is a common use case. (Even though minimum and maximum OS versions added to pkginfo files will ultimately prevent items from being installed on incompatible operating systems, Munki will still generate warning messages. You can avoid these messages by adding conditions to your Munki manifests.)
Step 1: Create the manifest condition
- Open MunkiAdmin and go to the Manifests view. (If you are new to MunkiAdmin, see our KB article.)
- Locate the manifest you want to modify, and double-click to open it. This will most likely be your unit's base_default or other shared manifest.
- Select Conditions, and click the plus symbol to open the Predicate Editor window.
- Use the dropdown menus to build the desired condition(s). For example, to create a condition that excludes any device on macOS 10.15 and up, set the following, then click OK to save your changes.
- You can create multiple conditions for the same manifest:
Step 2: Apply the condition to a package
- With the manifest still open in MunkiAdmin, go to the section containing the package requiring the condition--e.g. Optional Installs.
- Click on the Condition column to select the desired condition for a given package.
- Click the Save button in the MunkiAdmin toolbar to save your changes.
Visit the Munki wiki for more details about using conditions in manifests.