I am trying to copy out the contents of home directories via puppet while 
controlling the home directory permissions at the same time and I am stuck.

I don't see a good way to copy contents of a directory using the remote 
directive while still managing the directory permissions directly.

e.g. I want to set $home to owner/group ${user}/${group} and enforce the 
mode of 0700. I would like to copy all of the files from the source intact 
with no permission or ownership changes.

I would like to see something like the following:

file { $home:
   path => "puppet://modules/users/${user}",
   mode => 0700,
   owner => ${user},
   group => ${group},
   require => User[${user}],
   recurselimit => 1,
}

Where the recurselimit setting of 1 (or some other sensible setting) makes 
the directory the only item that gets managed.

Thanks,

--Robert

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/nRcEg8YF4YUJ.
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-users?hl=en.

Reply via email to