Bug #2098
Ralsh does not find default provider for user resource type when executed with sudo .
| Status: | Duplicate | Start date: | 03/22/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Affected Puppet version: | 0.24.7 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
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.
Related issues
History
Updated by Luke Kanies almost 3 years ago
- Status changed from Unreviewed to Duplicate
Duplicate of #1631.