Hi Guys, Quick question about fileservering files with puppet. I understand that a puppet client re-runs its catalogue, when it knows that catalogue has changed from the last time it ran a check. I just wanted to know if this change detection extends to files. Example: node test1 includes class test which gets a file test.sh from the puppet server and then executes test.sh. My thinking is that if test.sh were to have lines added to it, that it has therefore changed and then test1 should re-run its catalogue the next time it checks against the puppet server. Just want to make sure my thinking is correct and this is actually how puppet works? --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
josbal schrieb:> Hi Guys, > > Quick question about fileservering files with puppet. I understand > that a puppet client re-runs its catalogue, when it knows that > catalogue has changed from the last time it ran a check.Not entirely correct. The client applies the complete[1] catalogue everytime it runs. That includes checking all file resources against their source. [1] modulo schedules and --tags Regards, DavidS -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
josbal schrieb:> Hi Guys, > > Quick question about fileservering files with puppet. I understand > that a puppet client re-runs its catalogue, when it knows that > catalogue has changed from the last time it ran a check.Not entirely correct. The client applies the complete[1] catalogue everytime it runs. That includes checking all file resources against their source. The other question is whether or not the server generates a new catalogue or re-uses the old one. If you are using the "source" parameter to transmit the file, it doesn''t matter, since the contents are not transmittet wirhin the catalogue. If you are using "content" with a function like "file()", "template()" or "generate()", I don''t know how puppet would react. Anyone else has an idea here? [1] modulo schedules and --tags Regards, DavidS -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi David, Thanks for your response. So if i am using "source" for my file, will it be downloaded everytime regardless of whether the file already exists on the client, or will it only download it if the file doesn''t exist on the client. Or does it use md5 to compare the file and only download if it is different? Cheers, Josh --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
josbal schrieb:> Hi David, > > Thanks for your response. > > So if i am using "source" for my file, will it be downloaded everytime > regardless of whether the file already exists on the client, or will > it only download it if the file doesn''t exist on the client. Or does > it use md5 to compare the file and only download if it is different? >This depends on the other parameters of this file resource. See http://reductivelabs.com/trac/puppet/wiki/TypeReference#file for details. Specifically the "checksum" parameter. Regards, DavidS -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---