On Demand Items
As of version 2.3, Munki has support for on-demand user installation/execution of certain self-service items. When an item marked as supporting "OnDemand" install is included in the list of optional_installs, an end-user can install/execute this item whenever they wish, and as often as they'd like -- in other words, installing/running such an item does not cause the item to be classified as "installed". This can be useful to allow users to run scripts that perform maintenance tasks that normally require elevated privileges, or would otherwise be desirable to pre-program as a workflow that guides the end user through.
If the "OnDemand" key is present and set to True:
- The item is never considered installed--this means Munki will never think it needs to be removed, either (because it's not installed)
- If you add such an item to a regular manifest:
- In managed_installs: Munki will try to install the item over and over and over (since it is never considered installed)
- In managed_updates: It will never be updated (since it is never considered installed)
- In managed_uninstalls: It will never be removed (since it is never considered installed)
- In optional_installs: The only functional choice
- If chosen by the user for optional install, the item will be installed and then removed from the local SelfServeManifest--thus making it available for a future re-install
To illustrate one possible workflow around adding an OnDemand item, please see the use case documented by Shea Craig: https://sheagcraig.github.io/configuring-and-reconfiguring-the-default-mail-reader-self-service-through-munki-and-a-tale-of-woe/
- Getting Started
- Overview
- Discussion Group
- Demonstration Setup
- Glossary
- Frequently Asked Questions
- Contributing to Munki
- Release Notes
- Introduction
- Managed Software Center in Munki 5.2
- Manual Apple Updates
- force_install_after_date for Apple Updates
- Additional update encouragement
- Aggressive update notifications
- AggressiveUpdateNotificationDays preference
- Additional Munki 5 changes
- Configuration profile notes
- Major macOS upgrade notes
- Upgrading to Munki 5
- Introduction
- Munki Links
- Product Icons
- Screenshots In Product Descriptions
- Client Customization
- Custom Help Content
- Featured Items
- Update Notifications:
- Introduction
- iconimporter
- makepkginfo
- munkiimport
- managedsoftwareupdate
- makecatalogs
- manifestutil
- repoclean
- Preferences
- Default Repo Detection
- Default Manifest Resolution
- Managed Preferences Support In Munki
- Apple Software Updates With Munki
- Pkginfo Files
- Supported Pkginfo Keys
- Pre And Postinstall Scripts
- Munki And AutoRemove
- Blocking Applications
- ChoiceChangesXML
- CopyFromDMG
- nopkg items
- How Munki Decides What Needs To Be Installed
- Default Installs
- Removal of Unused Software
- Upgrading macOS:
- Apple Updates:
- Securing the Munki repo
- Preflight And Postflight Scripts
- Report Broken Client
- MSC Logging
- Munki With Git
- Bootstrapping With Munki
- License Seat Tracking
- LaunchD Jobs and Changing When Munki Runs
- Web Request Middleware
- Repo Plugins
- Downgrading Software
- Downgrading Munki tools
- Authorized Restarts
- Allowing Untrusted Packages
- About Munki's Embedded Python
- Customizing Python for Munki
- Configuration Profile Emulation
- PPPC Privacy permissions
- AutoPkg
- Repackaging
- Creating Disk Images
- Stupid Munki Tricks
- Troubleshooting
- Professional Support
- Known Issues and Workarounds
- Building Munki packages
- Munki packages and restarts
- Signing Munki
- Removing Munki
- More Links And Tools
- Munki Configuration Script
- Who's Using Munki
- Munki 3 Information
- Munki 4 Information
- macOS Monterey Info
- Pkginfo For Apple Software Updates
- Managing Configuration Profiles
- Microsoft Office
- Adobe Products
- Upgrading macOS: