On 04/04/2011 10:00 PM, Forrie wrote: > On my test system, I noticed that (with virtual users) if you remove / > home/username, puppet doesn't realize there is a problem, as the > resource doesn't track the home directory. > > When you userdel then it notices and creates everything as it should > be.
Sounds like a bug to me. A user with managehome => true but no home directory should not be in sync. You may want to report this (or vote on the bug if it's been reported already). > In a virtual user configuration, what's the best way to ensure that > the home directory is also present, in addition to the /etc/passwd > entries (or, dependent on each other)? I don't understand what the user's being virtual has to do with this, please elaborate. A simple workaround is to wrap the user type in your own define. This define will manage the home dir as a file type resource and you don't use managehome at all. I think it's quite common to do that, since people probably want to ensure the existence of .ssh/authorized_keys or similar things as well. HTH, Felix -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.