Forge Home


Module for common OS X Management Tasks


10,988 latest version

1.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.1 (latest)
  • 0.1.0
released Sep 12th 2012

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'glarizza-osx_management', '0.2.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add glarizza-osx_management
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install glarizza-osx_management --version 0.2.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



glarizza/osx_management — version 0.2.1 Sep 12th 2012


This is a module with example manifests for managing OS X Machines. We've compiled a list of the manifests we use for demoing Puppet and MCollective with OS X


Apache 2.0


Chris Barker Gary Larizza



Creates a user that will eventually be an Admin. The manifest DOES NOT add them to the admin or staff group, just creates a user.


Essentially, the same thing as add_admin_user - creates a local user.


Demonstrates ensuring a package with the appdmg this case, Firefox


Uses the module to create printers on a machine.


These classes demonstrate using the macauthorization built-in Puppet type to set values in /etc/authorization


This class installs the MCollective Package (must provide this, or the URL to this) and sets up server.cfg. It will also drop an /etc/mcollective/facts.yaml file based on variables in scope (which can be commented out if need be).


This class drops in a couple of extra plugins that we created for Mactech and Macsysadmin (munki and printer agents). You must get those agents from and put them in the files/plugins/agent directory


This class will install the munkitools package from and set plist values in /Library/Preferences/ManagedInstalls.plist using the glarizza-property_list_key module from the Puppet Forge (


This class will clone a previously-created Munki repository to /opt/munki. We use our internal Puppet Labs repo, so ensure that you change the source parameter and replace it with your VCS repository URL

Facter Fact - munki_version

This facter fact will execute '/usr/local/munki/managedsoftwareupdate --version' and return the version to Facter.