Use munki-pkg to package up stuff and make your life easier when managing Macs using munki. Here is an example of installing a screensaver.
Why use munki-pkg? How else do you install stuff using munki, run scripts, and version your testing buildings all in one easy to use application? This is all possible with munki-pkg.
Munki-pkg makes package (PKG) installers, Munki likes pkg installers. Munki will also install apps, run scripts, install profiles, and do many things but packages are useful because we can put files in specific places, such as the main computer level screensaver folder, then run a script to set it as a default.
Download munki-pkg and create a working project folder.
Step 1.
Create the folders you need and place your files (payloads) in the right places.
Step 2.
Create your post install script if you need one. Example: setting the screensaver you just installed as the default.
#!/bin/sh defaults -currentHost write com.apple.screensaver moduleDict -dict moduleName Brooklyn path /System/Library/Screen\ Savers/Brooklyn.saver/ type 0
Step 3. Build your package
Run munki-pkg on the command line and build your package. If you make changes then version up in your build-info.plist and build again.