class whs::auth {
if ($macosx_productversion_major == '10.9'){
file { 'authorization109':
path => '/System/Library/Security/authorization.plist',
ensure => file,
owner => 'root',
group => 'wheel',
mode => '0644',
source => 'puppet:///modules/whs/authorization-10.9.plist',
}
exec { 'auth.db' :
command => '/bin/mv /var/db/auth.db /var/db/auth.db.orig',
subscribe => File["authorization109"],
refreshonly => true,
}
}
elseif ($macosx_productversion_major == '10.8') {
file { 'authorization108':
path => '/etc/authorization',
ensure => file,
owner => 'root',
group => 'wheel',
mode => '0644',
source => 'puppet:///modules/whs/authorization-10.8',
}
}
}
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '{'; expected '}' at /etc/puppet/modules/whs/manifests/auth.pp:21 on node aaronshegrud.___.___
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '=='; expected '}' at /etc/puppet/modules/whs/manifests/auth.pp:21 on node aaronshegrud.___.___
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run