Hello,

 I've been able to use the recurse function of the File type successfully:

  file { "/opt/solr":
       source => "puppet:///modules/solr/solr-files",
       owner => "tomcat",
       group => "tomcat",
       *recurse => true*
     }

The recurse option will sync an entire folder of files.

Tim

On Sun, Nov 2, 2014 at 4:39 AM, Alexey Korepov <[email protected]> wrote:

> I need to sync one folder on server with many clients via Puppet, but this
> folder contains many small files and subfolders. And I afraid that adding
> this folder to Puppet via standard way will slow-down sync process on each
> client.
>
> As I understand, Puppet on every sync action recheck each file (rebuild
> md5 sum) on server and client for finding changes.
>
> On client computers this folder will be readonly, so we don't need to
> recheck md5 sums on every sync process. On server files will be changed
> very rarely too.
>
> Can you recommend the best way for sync this folder via Puppet with
> minimally slow-down sync process, traffic and resources usage?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/02ffca20-e9b0-46f5-bb7f-a57ca5e4535a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/02ffca20-e9b0-46f5-bb7f-a57ca5e4535a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOZy0emaSa0v2hWjgmxqAu24U1O0afqyZqobqrHgm9ANSHYqRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to