Issue #9143 has been updated by Nigel Kersten. Status changed from Accepted to In Topic Branch Pending Merge Branch set to https://github.com/nigelkersten/puppet/tree/tickets/2.7.x/9143-make-macauthorization-work-on-lion
pull request sent. Branch: <https://github.com/nigelkersten/puppet/tree/tickets/2.7.x/9143-make-macauthorization-work-on-lion> Commit: <https://github.com/nigelkersten/puppet/commit/51b0c002d4f1781d930c4805f128855407add796> Pull: <https://github.com/puppetlabs/puppet/pull/99> ---------------------------------------- Bug #9143: macauthorization provider fails on OS X 10.7 (Lion) https://projects.puppetlabs.com/issues/9143 Author: Clay Caviness Status: In Topic Branch Pending Merge Priority: Normal Assignee: Nigel Kersten 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.
