Issue #9143 has been updated by Matthaus Litteken.
Sorry, you're totally right. There were tests failing on OS X, and I reverted the two commits that were at the top, as they both involved OS X. I should have reverted them one by one and rerun the spec tests in between. I'll re-merge this into 2.7.x ---------------------------------------- Bug #9143: macauthorization provider fails on OS X 10.7 (Lion) https://projects.puppetlabs.com/issues/9143 Author: Clay Caviness Status: Code Insufficient Priority: Normal Assignee: Matthaus Litteken Category: OSX Target version: 2.7.x Affected Puppet version: Keywords: lion Branch: https://github.com/nigelkersten/puppet/tree/tickets/2.7.x/9143-make-macauthorization-work-on-lion $ 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.
