On Mon, May 23, 2011 at 10:08 AM, Aaron Grewell <aaron.grew...@gmail.com> wrote: > You'll have to copy the entire contents of /usr into the Puppet tree to do > this, you can't serve it in place. I wouldn't do what you're doing anyway. > Puppet is great for serving config files but for serving all of /usr I'd > choose either NFS or rsync and call your sync script from Puppet.
I find myself using something like this fairly often: $rsync_html = "/usr/bin/rsync -a $user@$host:$svnfolder/html/ $approot/html --exclude=.svn --delete" exec { $rsync_html: onlyif => "test `$rsync_html --dry-run --itemize-changes | wc -l` -gt 0" } -- 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.