-
Notifications
You must be signed in to change notification settings - Fork 347
Munki and AutoRemove
Munki has support for a boolean 'autoremove' key, to specify items that should be automatically removed if they are not listed in 'managed_installs' in the client's manifest (or included manifests).
If an 'autoremove' item is listed in 'managed_updates' or in 'optional_installs' but not in 'managed_installs', that item will be removed.
An example:
<key>autoremove</key>
<true/>
<key>name</key>
<string>FinalCutPro7</string>
This means that if FinalCutPro7 is not listed in the "managed_installs" for a given client, it will be automatically removed. Think of it as a virtual entry in the "removals" list.
-
If you added this key to every package, the installcheck phase might take a very long time as it checked the installation status of everything in your repo. So you probably want to add this only to items in which you need to tightly control the installed base - like items with limited numbers of available license seats.
-
There's a problem when you have overlapping items. For example, let's say you have these two items:
- AdobePhotoshopCS4
- AdobeCS4DesignStandard
- If you mark these both for autoremoval (a logical thing to do), on a client that has AdobeCS4DesignStandard installed, installcheck will see that Photoshop CS4 is installed, note that AdobePhotoshopCS4 is NOT in the managed_installs list, and schedule AdobePhotoshopCS4 for removal -- which is not what you want. So for now you'll need to NOT mark these sorts of items for autoremoval.
-
munki 0.5.0 has an attempt to work around the above issue. If an item has an "installs" key, listing items that are installed, the code that considers an item for possible removal will not consider the item installed unless ALL items in the "installs" array are installed.
- So - in the case of overlapping installable items like PhotoshopCS4 and AdobeCS4DesignStandard, you must ensure the "installs" list is unique for each item in an overlapping group. This allows the code that considers items for removal to distinquish between an install of just PhotoshopCS4 and one of a CS4 Suite, for example.
- The flipside is that if something is installed and then partially deleted, munki won't be able to confirm that the item is actually installed, and will not attempt to remove it.
- 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: