Forge Home

macdefaults

Manage defaults on an OS X system

11,951 downloads

11,951 latest version

0.1 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.0.1 (latest)
released Feb 18th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'grahamgilbert-macdefaults', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add grahamgilbert-macdefaults
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install grahamgilbert-macdefaults --version 0.0.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.

Download

Documentation

grahamgilbert/macdefaults — version 0.0.1 Feb 18th 2013

OS X Defaults module for Puppet

This module manages defaults on OS X. I didn't write 90% of this, but I can't for the life of me remember where I found it. I'm putting it on here for posterity.

#Usage

Possible valuse for type are:

  • string
  • data
  • int
  • float
  • bool
  • data
  • array
  • array-add
  • dict
  • dict-add

Example Puppet Code:

include macdefaults

mac-defaults { "set-a4":
      domain => '/Library/Preferences/com.apple.print.PrintingPrefs',
      key => 'DefaultPaperID',
      type => 'string',
      value => "iso-a4",
}