Jeff
2009-Jan-28 15:37 UTC
[Puppet Users] File ''replace => false'' doesn''t match my expectations...
Sorry if I missed this in the documentation... Does this work according to its design? When I configure this file with a template and CHANGE the file on the client server, puppet detects a change and overwrites the file: file { "jboss-config": path => "/etc/sysconfig/jboss", ensure => present, replace => false, owner => root, group => root, mode => "0644", content => template("/var/puppet/modules/atg/files/jboss- config.erb"), require => Package["jboss-${release}"] } BUT when I configure this file with a source: file { "jboss-config": path => "/etc/sysconfig/jboss", ensure => present, replace => false, owner => root, group => root, mode => "0644", source => "puppet://$servername/atg/jboss-config", require => Package["jboss-${release}"] } puppet does NOT overwrite a changed file on the client server. I expected no overwrites in either situation. Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andrew Shafer
2009-Jan-29 00:18 UTC
[Puppet Users] Re: File ''replace => false'' doesn''t match my expectations...
Jeff, What version of Puppet are you using? I could not reproduce this behavior with either content or source. When replace was false the file was not changed. When I changed the file on disk, the logs say that the checksum changed and that is replaced in the file bucket. If you can consistently reproduce the behavior, open an issue with the steps. Thanks, Andrew On Wed, Jan 28, 2009 at 8:37 AM, Jeff <joesiege@gmail.com> wrote:> > Sorry if I missed this in the documentation... > > Does this work according to its design? > > When I configure this file with a template and CHANGE the file on the > client server, puppet detects a change and overwrites the file: > file { "jboss-config": > path => "/etc/sysconfig/jboss", > ensure => present, > replace => false, > owner => root, > group => root, > mode => "0644", > content => template("/var/puppet/modules/atg/files/jboss- > config.erb"), > require => Package["jboss-${release}"] > } > > BUT when I configure this file with a source: > file { "jboss-config": > path => "/etc/sysconfig/jboss", > ensure => present, > replace => false, > owner => root, > group => root, > mode => "0644", > source => "puppet://$servername/atg/jboss-config", > require => Package["jboss-${release}"] > } > > puppet does NOT overwrite a changed file on the client server. > > I expected no overwrites in either situation. > > Jeff > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff
2009-Jan-30 15:54 UTC
[Puppet Users] Re: File ''replace => false'' doesn''t match my expectations...
On Jan 28, 7:18 pm, Andrew Shafer <and...@reductivelabs.com> wrote:> Jeff, > > What version of Puppet are you using?Andrew, Each time I used a template, it overwrote a changed file. Each time I used a source, it did not. Version: 0.24.4 I just tested one more time to make sure. The results were the same. If I used a template AND replace => false, it still overwrote a modified file. If I used source AND replace => false, it did not. Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2009-Feb-05 04:59 UTC
[Puppet Users] Re: File ''replace => false'' doesn''t match my expectations...
On Jan 30, 2009, at 9:54 AM, Jeff wrote:> > On Jan 28, 7:18 pm, Andrew Shafer <and...@reductivelabs.com> wrote: >> Jeff, >> >> What version of Puppet are you using? > > Andrew, > > Each time I used a template, it overwrote a changed file. Each time I > used a source, it did not. > > Version: 0.24.4 > > I just tested one more time to make sure. The results were the same. > If I used a template AND replace => false, it still overwrote a > modified file. If I used source AND replace => false, it did not.Definitely not the right behaviour, and fixed in recent releases. -- The leader of Jamestown was "John Smith" (not his real name), under whose direction the colony engaged in a number of activities, primarily related to starving. -- Dave Barry, "Dave Barry Slept Here" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---