autopkg / wycomco-recipes

Public repository with AutoPKG recipes
Apache License 2.0
6 stars 2 forks source link

Munki staging processor #11

Closed choules closed 2 years ago

choules commented 2 years ago

This pull request introduces a new shared processor which may be used to implement an automatic staging of items in a Munki repo.

To use this processor, the wycomco-recipes repo should be in AutoPKG's search path and then the processor may be referenced like this:

<dict>
    <key>Processor</key>
    <string>com.github.wycomco.SharedProcessors/MunkiAutoStaging</string>
</dict>

To enable this reference method, I have created a stub recipe as describe in the AutoPKG wiki.

The processor uses common input vars from a Munki recipe, and the following new ones

Currently, there is no way to force a makecatalog using the MakeCatalog.munki recipe, see this issue for details. So it may be the case, that even though the catalog was set correctly inside the pkginfo file, the catalogs do not get updated correctly.

choules commented 2 years ago

Updated to reflect the comments above.

choules commented 2 years ago

Tested locally, everything works as expected.