--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/02ffca20-e9b0-46f5-bb7f-a57ca5e4535a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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?
[...]
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.
If the files were genuinely read-only then you would have a different problem: Puppet would not be able to update them when that's needed. If Puppet (running as root) can update them, on the other hand, then it is not safe to assume that they will remain unchanged between Puppet runs.
[...]
if $updateStart {
file { '/srv/update':
ensure => directory,
recurse => true,
purge => true,
force => true,
mode => 0644,
owner => "root",
group => "root",
source => 'puppet:///module/update';
}
}
exec { 'RsyncLocalFiles':
command => "rsync -az us...@server1.example.com:/srv/files /srv/files && rm /srv/update/start",
onlyif => "/usr/bin/test -e /srv/update/start",
}
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAELoU1NARgU9f0OsGZ1Z9Ns3htuu_Xkn9p9bNszY%3DYCzggcnUg%40mail.gmail.com.