Issue #10915 has been updated by Josh Cooper.
Description updated
Hi Michael, the error
<pre>
The aix provider can not handle attribute password at
/etc/puppet/modules/root_user/manifests/init.pp:35
</pre>
shows puppet is trying to call the `password=` method on the aix provider, but
it's raising an error that the method doesn't exist:
<pre>
def call_provider(value)
provider.send(self.class.name.to_s + "=", value)
rescue NoMethodError
self.fail "The #{provider.class.name} provider can not handle attribute
#{self.class.name}"
end
</pre>
And what's strange is that the provider does have that method defined:
<pre>
Puppet::Type.type(:user).provide :aix, :parent => Puppet::Provider::AixObject do
...
def password=(value)
user = @resource[:name]
...
</pre>
It's almost as though it's picking up a different `aix` provider that doesn't
have that method defined. Is it possible you have some other aix provider that
is earlier in your ruby load path?
----------------------------------------
Bug #10915: Managing passwords under AIX doesn't work
https://projects.puppetlabs.com/issues/10915
Author: Michael Bryant
Status: Unreviewed
Priority: Normal
Assignee:
Category: provider
Target version:
Affected Puppet version: 2.7.6
Keywords: AIX user provider puppet password
Branch:
<pre>
err: /Stage[main]/Root_user/User[root]/password: change from [old password hash
redacted] to [new password hash redacted]
failed: The aix provider can not handle attribute password at
/etc/puppet/modules/root_user/manifests/init.pp:35
</pre>
A cursory look at the source shows that the aix user provider has the feature
manages_passwords, but doesn't have the password attribute listed as being
managed
config:
user { "root":
ensure => "present",
uid => "0",
gid => "system",
comment => "Super-User",
home => "/",
shell => "/usr/bin/ksh",
password => 'REDACTED'
}
--
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.