A Chef cookbook used to provision macOS
Перейти к файлу
Eric Hanko d9e18c3f05 add case for string type 2017-07-27 12:46:20 -07:00
.delivery Add generated delivery build cookbook 2017-05-31 14:31:22 -07:00
.idea type error in macos cookbook 2017-07-27 11:56:08 -07:00
attributes add attributes 2017-06-27 01:45:44 -07:00
files add bginfo recipe and potential insomnia recipe 2017-06-27 01:31:32 -07:00
libraries rubocop fixes 2017-06-03 17:19:45 -07:00
recipes update bginfo recipe to use v-erhank develop repo 2017-07-17 16:35:48 -07:00
resources add case for string type 2017-07-27 12:46:20 -07:00
spec add bginfo recipe and potential insomnia recipe 2017-06-27 01:31:32 -07:00
test/smoke/default add bginfo recipe and potential insomnia recipe 2017-06-27 01:31:32 -07:00
.gitignore add entire idea directory 2017-07-17 16:33:34 -07:00
.kitchen.yml update box 2017-07-19 18:10:22 -07:00
Berksfile Add generated cookbook content 2017-05-31 14:31:21 -07:00
README.md Update usage 2017-06-07 15:41:54 -07:00
chefignore Add generated cookbook content 2017-05-31 14:31:21 -07:00
metadata.rb bump version 2017-07-20 15:38:47 -07:00

README.md

macos-cookbook

Resources

systemsetup

The systemsetup resource is a wrapper for /usr/sbin/systemsetup. Use the get and set properties with hashes or strings in order to get or set the desired setting.

Example "set" usage:

systemsetup 'keep awake and get time information' do
  set sleep: 0,
      computersleep: 0,
      displaysleep: 0,
      harddisksleep: 0
  get %w(networktimeserver timezone)
end

Available settings to use with the systemsetup resource:

date <mm:dd:yy>
time <hh:mm:ss>
timezone <timezone>
usingnetworktime <on off>
networktimeserver <timeserver>
sleep <minutes>
computersleep <minutes>
displaysleep <minutes>
harddisksleep <minutes>
wakeonmodem <on off>
wakeonnetworkaccess <on off>
restartpowerfailure <on off>
restartfreeze <on off>
allowpowerbuttontosleepcomputer <on off>
remotelogin <on off>
remoteappleevents <on off>
computername <computername>
localsubnetname <name>
startupdisk <disk>
waitforstartupafterpowerfailure <seconds>
disablekeyboardwhenenclosurelockisengaged <yes no>