Issue #2260 has been updated by James Turnbull. Target version deleted (unplanned)
---------------------------------------- Bug #2260: macauthorization provider fails on changes without an explicitly set auth_type https://projects.puppetlabs.com/issues/2260 Author: Clay Caviness Status: Rejected Priority: Normal Assignee: Nigel Kersten Category: OSX Target version: Affected Puppet version: 0.24.8 Keywords: Branch: Applying this manifest: <pre> macauthorization { 'system.login.screensaver': # auth_type => "right", rule => 'authenticate-session-owner', } </pre> gives this output: <pre> debug: Puppet::Type::Macauthorization::ProviderMacauthorization: Executing '/usr/bin/sw_vers -productVersion' debug: Creating default schedules debug: Prefetching macauthorization resources for macauthorization debug: //Macauthorization[system.login.screensaver]: Changing rule debug: //Macauthorization[system.login.screensaver]: 1 change(s) notice: //Macauthorization[system.login.screensaver]/rule: rule changed 'authenticate-session-owner-via-password-or-kerb' to 'authenticate-session-owner' err: Could not apply complete catalog: flush requested for unknown type. </pre> It appears that the auth_type is unset (nil) so the provider fails in the case statement at lib/puppet/provider/macauthorization/macauthorization.rb, line 125 If I explicitly set the auth_type, the manifest is applied successfully. ralsh sees the correct auth_type: <pre> $ ralsh macauthorization system.login.screensaver macauthorization { 'system.login.screensaver': comment => 'The owner or any administrator can unlock the screensaver.', auth_type => 'right', auth_class => 'rule', rule => 'authenticate-session-owner-via-password-or-kerb', ensure => 'present' } </pre> -- 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.
