Endpoint Services, Munki, Using Conditions in Manifests

This article provides information on using conditional arrays in Munki manifests.

Systems

Munki Mac Endpoint Management

Affected Customers

University of Illinois IT Pros leveraging Technology Services Endpoint Services' Munki Mac Endpoint Management

General Information

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

  1. Open MunkiAdmin and go to the Manifests view. (If you are new to MunkiAdmin, see our KB article.)
  2. 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.
  3. Select Conditions, and click the plus symbol to open the Predicate Editor window.
  4. 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.
  5. MunkiAdminConditionCreation
  6. You can create multiple conditions for the same manifest:
MunkiAdminConditionsList

Step 2: Apply the condition to a package

  1. With the manifest still open in MunkiAdmin, go to the section containing the package requiring the condition--e.g. Optional Installs.
  2. Click on the Condition column to select the desired condition for a given package.
  3. MunkiAdminConditionsApplied
  4. Click the Save button in the MunkiAdmin toolbar to save your changes.

Visit the Munki wiki for more details about using conditions in manifests.


Contact the EPS team




Keywords:eps mtm "multi tenant" multi-tenant mac macos endpoint techs-eps-mtm manifest condition   Doc ID:96125
Owner:EPS Distribution List .Group:University of Illinois Technology Services
Created:2019-11-21 15:42 CSTUpdated:2019-11-22 14:24 CST
Sites:University of Illinois Technology Services
Feedback:  0   0