On Mon, Nov 28, 2011 at 03:01:14PM +0000, Dan White wrote:
> 
> Thanks for responding.  Nice tag line.
> 
> OK, more details:
> 
> In my users class, I want to be able to push out custom dot-files when the 
> user account is first created.
> Unfortunately, if one sets user:managehome => true, the dotfiles are
> created by default and the custom file is not pushed out unless you
> set file:replace => yes.

You realise that this is being done by Unix (Linux?), not Puppet?  If
you use puppet to replace the system's default dotfiles (on Linux,
they'll be in /etc/skel) *before* creating any users, you'll get
precisely what you want.  Just set up the users so that they depend on
the file resources which place the right files in /etc/skel and this
will guarantee the files are in there before the users are created
(assuming they didn't exist already).  The Unix user creation tools
will copy the /etc/skel files into the right place when Puppet invokes
them.

This only fails if you need different dotfiles (differing by content
and/or name) for different users.  If you don't, simple win

-- 
Bruce

Hierophant: someone who remembers, when you are on the way down,
everything you did to them on the way up.

-- 
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.

Reply via email to