3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/security.pp', line 3
class boxen::security(
$require_password = true,
$screensaver_delay_sec = 5
) {
boxen::osx_defaults { 'require password at screensaver':
ensure => present,
domain => 'com.apple.screensaver',
key => 'askForPassword',
value => $require_password,
type => 'bool',
user => $::boxen_user
}
boxen::osx_defaults { 'short delay for password dialog on screensaver':
ensure => present,
domain => 'com.apple.screensaver',
key => 'askForPasswordDelay',
value => $screensaver_delay_sec,
type => 'float',
user => $::boxen_user
}
}
|