Issue #2260 has been reported by Clay Caviness.
----------------------------------------
Bug #2260: macauthorization provider fails on changes without an explicitly set
auth_type
http://projects.reductivelabs.com/issues/2260
Author: Clay Caviness
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Affected version: 0.24.8
Keywords:
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---