Issue #3028 has been updated by Nigel Kersten.
This is a bit odd:
<pre>
nigelk$ ralsh user nigelk
user { 'nigelk':
shell => '/bin/bash',
uid => '12345',
comment => 'Nigel Kersten',
ensure => 'present',
gid => '12345',
home => '/Users/nigelk'
}
nigelk$ ralsh user foobar ensure=absent
user { 'foobar':
ensure => 'absent'
}
nigelk$ ralsh user nigelk ensure=absent
err: /User[nigelk]/ensure: change from present to absent failed: Could not
delete user nigelk: Execution of '/usr/bin/dscl -plist . -delete /Users/nigelk'
returned 40: <main> delete status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)
user { 'nigelk':
shell => '/bin/bash',
uid => '12345',
comment => 'Nigel Kersten',
ensure => 'present',
gid => '12345',
home => '/Users/nigelk'
}
</pre>
It definitely shouldn't be trying to trigger an actual delete when invoked by
ralsh... that's not what other platforms do is it?
----------------------------------------
Bug #3028: Ralsh on OSX 10.5 messily fails when not run as root
http://projects.puppetlabs.com/issues/3028
Author: James Turnbull
Status: Investigating
Priority: Normal
Assigned to: Nigel Kersten
Category: ralsh
Target version: 0.25.6
Affected version: 0.25.2
Keywords:
Branch:
<pre>
james$ ralsh user james ensure=absent
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/provider/nameservice/directoryservice.rb:327:in
`get_password': undefined method `[]' for nil:NilClass (NoMethodError)
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/provider/nameservice/directoryservice.rb:219:in
`generate_attribute_hash'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/provider/nameservice/directoryservice.rb:255:in
`single_report'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/provider/nameservice/directoryservice.rb:524:in
`getinfo'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/provider/nameservice.rb:221:in
`exists?'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/user.rb:56:in
`retrieve'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/user.rb:261:in
`retrieve'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`inject'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/user.rb:255:in `each'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/user.rb:255:in
`inject'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/type/user.rb:255:in
`retrieve'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application/ralsh.rb:94:in
`main'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:226:in
`send'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:226:in
`run_command'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:217:in `run'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:306:in
`exit_on_fail'
from
/Library/Ruby/Gems/1.8/gems/puppet-0.25.2/lib/puppet/application.rb:217:in `run'
from /Library/Ruby/Gems/1.8/gems/puppet-0.25.2/bin/ralsh:89
from /usr/bin/ralsh:19:in `load'
from /usr/bin/ralsh:19
</pre>
Not to say it should return data but it should fail cleaner.
--
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.