Issue #2098 has been reported by teyo.

----------------------------------------
Bug #2098: Ralsh does not find default provider for user resource type when 
executed with sudo .
http://projects.reductivelabs.com/issues/2098

Author: teyo
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.7
Keywords: 


sudo ralsh user foo ensure=absent
err: Could not create foo: Could not find a default provider for user
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1737:in `defaultprovider': Could not 
find a default provider for user (Puppet::DevError)
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1880:in `default'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:651:in `setdefaults'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:140:in `eachattr'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:135:in `each'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:135:in `eachattr'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:641:in `setdefaults'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2342:in `initialize'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1131:in `new'
        from /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1131:in `create'
        from /usr/bin/ralsh:227

On Redhat, this is occuring because the adduser command is not in the users 
PATH.  The work around is to add /sbin to the user's PATH, but IMHO ralsh 
should not be dependent on path to find default providers.





----------------------------------------
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to