Resource Type: macauthdb
- Defined in:
- lib/puppet/type/macauthdb.rb
- Providers:
-
default
Overview
Manage the OS X authorization database. See the [Apple developer site](developer.apple.com/library/mac/documentation/Security/Conceptual/AuthenticationAndAuthorizationGuide/Introduction/Introduction.html) for more information.
Note that authorization store directives with hyphens in their names have been renamed to use underscores, as Puppet does not react well to hyphens in identifiers.
Autorequires: If Puppet is managing the ‘/System/Library/Security/authorization.plist` file, each macauthdb resource will autorequire it.
Example:
# Allow everyone to modify Energy Saver settings in the System Prefernces control panel
# First change the parent class macauthdb { ‘system.preferences’:
ensure => 'present',
allow_root => 'true',
auth_class => 'user',
auth_type => 'right',
authenticate_user => 'true',
comment => 'Checked by the Admin framework when making changes to certain System Preferences.',
group => 'everyone',
session_owner => 'false',
shared => 'true',
timeout => '2147483647',
tries => '10000',
}
# Then change the target macauthdb { ‘system.preferences.energysaver’:
ensure => 'present',
allow_root => 'true',
auth_class => 'user',
auth_type => 'right',
authenticate_user => 'true',
comment => 'Checked by the Admin framework when making changes to the Energy Saver preference pane.',
group => 'everyone',
session_owner => 'false',
shared => 'true',
timeout => '2147483647',
tries => '10000',
}