Quick Step-by-Step Guide for AutoPKG and JSSImporter

This is a quick step-by-step instructions to get AutoPKG and the JSSImporter to work so Mac Admins can begin testing and evaluating the two products, and see how these tools will help automate the less than glamorous parts of their job. This is not a lengthy description post explaining the awesome work that other Mac Admins have done in creating AutoPKG and JSSImporter, as there are plenty of other posts that explain this better than I can (including their own respective documentation).

Technical assumptions

  • The reference installers for AutoPKG and JSSImporter are .pkg files, so they must be run on a Mac.
  • The JSSImporter assumes that the JSS Distribution Point is either local, or always mounted.

Step-by-Step

  • Download and install autopkg
curl -OL https://github.com/autopkg/autopkg/releases/download/v0.3.0/autopkg-0.3.0.pkg
  • Add Default repo
autopkg repo-add https://github.com/autopkg/recipes.git
  • Download JSS-addon via autopkg
autopkg run JSS-addon.pkg
  • Install JSS-addon pkg
sudo intstaller -pkg /path/to/jss-autopkg-addon-0.0.2.pkg -target / -verbose
  • Create an ā€œStandardā€ User in the JSS with Create, Read, Update rights of JSS Objects.
  • Set plist environment variables (no slashes at the end)
defaults write com.github.autopkg JSS_REPO /Volumes/JSS_Dist_Point/Packages
defaults write com.github.autopkg JSS_URL https://test.jss.private:8443
defaults write com.github.autopkg API_USERNAME apiUser
defaults write com.github.autopkg API_PASSWORD apiPassword
  • Test
autopkg run TextWrangler.jss

Bonus Round

Use @seankaiserā€™s autopkg automation LaunchDaemon files to automatically check a list of applications (that you define) and send an email if there are updates!

Sources

Comments are closed. If you have a question concerning the content of this page, please feel free to contact me.