Issue #10354 has been updated by James Turnbull. Keywords changed from userdel managehome to userdel managehome simplefix
---------------------------------------- Bug #10354: Missing userdel flag in provider/useradd.rb when managehome is set to true https://projects.puppetlabs.com/issues/10354 Author: Bernard Nauwelaerts Status: Accepted Priority: Normal Assignee: Category: user Target version: 2.7.x Affected Puppet version: 2.6.4 Keywords: userdel managehome simplefix Branch: The documentation states about the managehome parameter : "The provider can create and remove home directories" But when managehome=true and ensure=absent, the home directory remains on the target system because the -r flag is missing. deletecmd is herited from objectadd.rb, so I solved this issue by overwriting it in useradd.rb. As I'm unfamiliar with ruby, there may be better ways to achieve this. Thanks. def deletecmd cmd = [command(:delete)] if @resource.managehome? cmd << "-r" end cmd << @resource[:name] end -- 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.
