ReleaseEngineering/PuppetAgain/Modules/osxutils

From MozillaWiki
< ReleaseEngineering‎ | PuppetAgain‎ | Modules
Revision as of 19:35, 31 July 2012 by Djmitche (talk | contribs) (→‎osxutils::defaults)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This module configures a Mac using the defaults and systemsetup utilities

It has two available classes:

osxutils::defaults

Uses the /usr/bin/defaults to write a key value pair to update a configuration unless said configuration already exists. Example:

           osxutils::defaults {
               autoLoginUser:
                   domain => "/Library/Preferences/com.apple.loginwindow",
                   key => 'autoLoginUser',
                   value => $::users::builder::username;
           }   

note that the resource name doesn't matter.

osxutils::systemsetup

Uses the /usr/bin/systemsetup to write a key value pair to update a configuration unless said configuration already exists.