{"id":193,"date":"2019-02-04T06:00:13","date_gmt":"2019-02-04T06:00:13","guid":{"rendered":"https:\/\/www.alansiu.net\/munkiguide\/?p=193"},"modified":"2025-08-08T01:58:13","modified_gmt":"2025-08-08T01:58:13","slug":"setting-up-and-using-autopkg-munki-recipes","status":"publish","type":"post","link":"https:\/\/www.alansiu.net\/munkiguide\/setting-up-and-using-autopkg-munki-recipes\/","title":{"rendered":"Setting up and using AutoPkg .munki recipes"},"content":{"rendered":"<h3>Install AutoPkg<\/h3>\n<p>You can find and install the latest release from <a href=\"https:\/\/github.com\/autopkg\/autopkg\/releases\/latest\" target=\"_blank\" rel=\"noopener noreferrer\">the AutoPkg GitHub page<\/a>.<\/p>\n<h3>Set up AutoPkg for Munki<\/h3>\n<p>Because of how GitHub has made it so you have to log into GitHub to search it, there&#8217;s a website you can use to search AutoPkg recipes: <a href=\"https:\/\/autopkgweb.com\" target=\"_blank\">autopkgweb.com<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-1024x589.png\" alt=\"\" width=\"1024\" height=\"589\" class=\"alignnone size-large wp-image-560\" srcset=\"https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-1024x589.png 1024w, https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-300x173.png 300w, https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-768x442.png 768w, https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-1536x884.png 1536w, https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/Screenshot-2025-08-07-at-18.52.29-2048x1179.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\nYou can search for a recipe, and you&#8217;ll see what the recipe is and what the recipe repo is that it belongs to.<\/p>\n<p>So, in this example, you can see a <strong>munkitools6-signed.munki.recipe<\/strong> recipe in the <strong>recipes<\/strong> repo.<\/p>\n<p>You should add that repo to have access to the recipes in it:<\/p>\n<p><code><strong>autopkg repo-add recipes<\/strong><\/code><\/p>\n<p>Then you can make an override for the munkitools6-signed.munki.recipe recipe, <a href=\"https:\/\/github.com\/autopkg\/autopkg\/wiki\/AutoPkg-and-recipe-parent-trust-info\" target=\"_blank\" rel=\"noopener noreferrer\">so you can use it properly<\/a>.<\/p>\n<p><code> <strong>autopkg make-override munkitools6-signed.munki.recipe<\/strong><br \/>\nOverride file saved to \/Users\/<em>username<\/em>\/Library\/AutoPkg\/RecipeOverrides\/munkitools6-signed.munki.recipe<\/code><\/p>\n<p>You&#8217;ll also want to make an override for the MakeCatalogs recipe as well:<\/p>\n<p><code><strong>autopkg make-override MakeCatalogs.munki<\/strong><br \/>Override file saved to \/Users\/<em>username<\/em>\/Library\/AutoPkg\/RecipeOverrides\/MakeCatalogs.munki.recipe<\/code><\/p>\n<p>The MakeCatalogs recipe will see if anything new is imported into your Munki repo, and then will run <em>makecatalogs<\/em> if necessary, so your clients can see the changes.<\/p>\n<p>Make sure you fail recipes that don&#8217;t have trust info:<\/p>\n<p><code><strong>defaults write com.github.autopkg FAIL_RECIPES_WITHOUT_TRUST_INFO -bool YES<\/strong><\/code><\/p>\n<p>One final thing you want to do is tell AutoPkg where you Munki repo is:<\/p>\n<p><code><strong>defaults write com.github.autopkg MUNKI_REPO \/Users\/Shared\/munki_repo<\/strong><\/code><\/p>\n<p>Now, you&#8217;re ready to run your first .munki AutoPkg recipe.<\/p>\n<h3>Using AutoPkg<\/h3>\n<p>Try running one .munki recipe:<\/p>\n<p><code><strong>autopkg run -v munkitools6-signed.munki.recipe MakeCatalogs.munki.recipe<\/strong><\/code><\/p>\n<p>The <em>-v<\/em> flag just gives you some more verbose output. You can run it without <em>-v<\/em> for less verbose output, or you can run it with several (<em>-vvv<\/em>) for even more verbose output.<\/p>\n<p>Make a bunch more overrides for recipes:<\/p>\n<p><code><br \/>\nautopkg make-override GoogleChrome.munki<br \/>\nautopkg make-override Firefox.munki<br \/>\nautopkg make-override Spotify.munki<br \/>\nautopkg make-override VLC.munki<\/strong><\/code><\/p>\n<p>You should then be able to run a series of .munki recipes all together:<\/p>\n<p><code><strong>autopkg run -v  GoogleChrome.munki Firefox.munki Spotify.munki VLC.munki munkitools6-signed.munki MakeCatalogs.munki<\/strong><\/code><\/p>\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"391\" src=\"https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/extracticons01.png\" alt=\"MunkiAdmin items view\" class=\"wp-image-201\" srcset=\"https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/extracticons01.png 597w, https:\/\/www.alansiu.net\/munkiguide\/wp-content\/uploads\/2019\/02\/extracticons01-300x196.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/figure>\n<p>Now if you go back to MunkiAdmin and <strong>Reload<\/strong> your repo, you should see a bunch of new things that AutoPkg fetched.<\/p>\n<p>If you&#8217;re confused a bit about overrides and trust info, you should really read <a href=\"https:\/\/github.com\/autopkg\/autopkg\/wiki\/AutoPkg-and-recipe-parent-trust-info\" target=\"_blank\" rel=\"noopener noreferrer\">AutoPkg and recipe parent trust info<\/a><\/p>\n<p>I&#8217;ve also written up <a href=\"https:\/\/github.com\/aysiu\/Mac-Scripts-and-Profiles\/blob\/master\/AutoPkgReviewAndRun.py\" target=\"_blank\" rel=\"noopener noreferrer\">a script that will prompt you to approve changes in recipes that have been updated.<\/a><\/p>\n<p>You may also want to check out a project called <a href=\"https:\/\/github.com\/lindegroup\/autopkgr\" target=\"_blank\" rel=\"noopener noreferrer\">AutoPkgr<\/a>, which provides a point-and-click GUI for managing AutoPkg repositories and recipes. Just keep in mind that the project is good, but it&#8217;s also hasn&#8217;t been actively developed in a while.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install AutoPkg You can find and install the latest release from the AutoPkg GitHub page. Set up AutoPkg for Munki Because of how GitHub has made it so you have to log into GitHub to search it, there&#8217;s a website you can use to search AutoPkg recipes: autopkgweb.com. You can search for a recipe, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_shortlink":"https:\/\/wp.me\/paDrAJ-37","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":18,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/posts\/193\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alansiu.net\/munkiguide\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}