Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Munki staging processor #11

Merged
merged 11 commits into from
Mar 18, 2022
Merged

Munki staging processor #11

merged 11 commits into from
Mar 18, 2022

Conversation

choules
Copy link
Member

@choules choules commented Mar 9, 2022

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

  • MUNKI_STAGING_CATALOG: The name of the staging catalog, defaults to "testing"
  • MUNKI_PRODUCTION_CATALOG: The name of the production catalogs, defaults to "production"
  • MUNKI_STAGING_DAYS: The amount of days to keep a new item in staging catalog

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 choules requested a review from a-vogel March 9, 2022 17:06
@choules choules requested review from jutonium and removed request for a-vogel March 15, 2022 13:37
SharedProcessors/MunkiAutoStaging.py Outdated Show resolved Hide resolved
SharedProcessors/MunkiAutoStaging.py Outdated Show resolved Hide resolved
SharedProcessors/MunkiAutoStaging.py Outdated Show resolved Hide resolved
@choules
Copy link
Member Author

choules commented Mar 15, 2022

Updated to reflect the comments above.

@choules
Copy link
Member Author

choules commented Mar 18, 2022

Tested locally, everything works as expected.

@choules choules merged commit 361b25a into master Mar 18, 2022
@a-vogel a-vogel deleted the munki_staging_processor branch March 21, 2022 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants