Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may be taking the wrong tact here. Use Puppet to define the state you need to enforce. If /home exists in your template and you want to manage a user's home directory, set managehome => true in the user definition. If /home does not exist, you have a serious problem - it was in your template, it's part of every distro, there is zero reason for it to not exist - and you should investigate the issue. Manually tracking and enforcing the state of system-provided directories may result in glossing over a destructive user or process that is destroying these directories rather than providing you the failure notices you need to see and fix the very serious issue.

Hopefully it was just a bad example.