jeff-l-mil...@uiowa.edu On Nov 3, 2014 9:35 AM, "Thomas Bendler" <thomas.bend...@gmail.com> wrote:
> 2014-11-03 15:53 GMT+01:00 jcbollinger <john.bollin...@stjude.org>: > >> [ >> ...] >> >> 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. >> [ >> ...] >> > > The easiest way will be an exec statement running an rsync process for > the synchronization. Maybe based on a flag if things changed on server side > like an empty file in the root directory every time a file changed: > > 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 u...@server1.example.com:/srv/files /srv/files && > rm /srv/update/start", > > onlyif => "/usr/bin/test -e /srv/update/start", > > } > > So can use Puppet to deploy the update file via an parameter if an update > is needed and the sync remove the flag if finished. This is just > quick'n'dirty, maybe there is a more elegant way. > > Regards Thomas > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAELoU1NARgU9f0OsGZ1Z9Ns3htuu_Xkn9p9bNszY%3DYCzggcnUg%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAELoU1NARgU9f0OsGZ1Z9Ns3htuu_Xkn9p9bNszY%3DYCzggcnUg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAM9Uby_4-Vsy3ZJWS%3D9%3Du8R0ZQ2i5Y2o2aqtBcXuMdZCYFwNMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.