I''m trying to remove a user with this configuration:
group { $name:
ensure => absent,
gid => $GID
}
user { $name:
ensure => absent,
uid => $UID,
gid => $name,
groups => $groups,
managehome => true,
shell => $shell,
before => Group[$name]
}
Since I set managehome to true, I''d expect puppet to pass a -r to
userdel and remove the home directory. It does not:
debug: User[ptjones](provider=useradd): Executing ''/usr/sbin/userdel
ptjones''
How do I remove the home directory when I remove a user? Do I have to
explicitly issue and exec with userdel -r ptjones?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
On Jun 20, 2008, at 8:38 AM, Jeff wrote:> > How do I remove the home directory when I remove a user? Do I have to > explicitly issue and exec with userdel -r ptjones?At this point, essentially, yes. There''s a feature request for it, but it''s so dangerous that I''ve been hesitant to add it. We''ve talked about having an ''ensure => purged'' option for users that would do this. It shouldn''t be a complicated patch, but... -- Brand''s Shortcut: The only way to predict the future is to make sure it stays exactly the same as the present. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---