ReleaseEngineering/PuppetAgain/Modules/osxutils

From MozillaWiki
Jump to: navigation, 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.