Issue #9143 has been updated by Gary Larizza.
Sure. It's pretty trivial, but I think we need to look at a way to 'future proof' this. Unfortunately, with Apple's track record of tweaks in every version, this may be the best way we have for now. ---------------------------------------- Bug #9143: macauthorization provider fails on OS X 10.7 (Lion) https://projects.puppetlabs.com/issues/9143 Author: Clay Caviness Status: Accepted Priority: Normal Assignee: Gary Larizza Category: OSX Target version: 2.7.x Affected Puppet version: Keywords: Branch: $ puppet resource macauthorization --debug --evaltrace debug: Puppet::Type::Macauthorization::ProviderMacauthorization: Executing '/usr/bin/sw_vers -productVersion' debug: Puppet::Type::Macauthorization::ProviderMacauthorization: false value when expecting true Could not run: Could not find a default provider for macauthorization This is another instance where there an OS X version check. Line 23 of macauthorization.rb (http://projects.puppetlabs.com/projects/puppet/repository/revisions/master/entry/lib/puppet/provider/macauthorization/macauthorization.rb#L23): confine :true => if /^10.5/.match(product_version) or /^10.6/.match(product_version This is not future proof. Exact same issue as http://projects.puppetlabs.com/issues/8375 The provider will work on 10.7, if enabled. After manually tweaking macauthorization.rb: $ puppet resource macauthorization system.preferences --debug --evaltrace debug: Puppet::Type::Macauthorization::ProviderMacauthorization: Executing '/usr/bin/sw_vers -productVersion' macauthorization { 'system.preferences': ensure => 'present', allow_root => 'true', auth_class => 'user', auth_type => 'right', comment => 'Checked by the Admin framework when making changes to certain System Preferences.', group => 'admin', shared => 'true', } I'm using Mac OS X 10.7.1, Puppet 2.7.3. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
