====== Munki ====== ===== Overview ====== Munki is software used for managing software on OS X. It is located at munki.socs.uoguelph.ca. ===== Shell Scripts (NoPKG Installation) ===== Munki is traditionally used to push out packaged software, but can also be used to deploy and run scripts. Two scripts should be created. The first is the pre-install script. This script needs to determine whether the desired action needs to be taken or not. This script should return 1 if nothing needs to be done, and 0 if something needs to be installed. The second script is the post-install script. This is the script that actually contains the desired action. Once the two scripts are written, they can be packaged up with the following script makepkginfo --name INSTALL_NAME --nopkg --pkgvers=1.0 --installcheck_script=PREINSTALLSCRIPT --postinstall_script=POSTINSTALLSCRIPT --unattended_install > INSTALLNAME.pkginfo This file can then be added to the pkgsinfo folder of Munki. Run makecatalogs to have munki rescan the folder for new packages ==== Running AutoPKG to update Munki Packages ==== * Ensure that autopkg is installed. It is available on the [[http://autopkg.github.io/autopkg/|autopkg website]]. *