Issue #5566 has been updated by Nigel Kersten.

There is an argument that in some cases avoiding checksumming entirely and 
simply considering the file out of sync, and replacing the contents always will 
be cheaper in terms of resource consumption.

I'm not sure I agree yet.
----------------------------------------
Bug #5566: Files with checksum => none delete file content
https://projects.puppetlabs.com/issues/5566

Author: James Turnbull
Status: Accepted
Priority: Immediate
Assignee: Nigel Kersten
Category: file
Target version: 2.6.5
Affected Puppet version: 2.6.4
Keywords: file checksum none
Branch: 


<pre>
$cat /tmp/bc.rb.old
nlah


manifest:

file { "/tmp/bc.rb.old":
  checksum => none,
  ensure => present,
  content => "blah",
}

puppet run:

debug: Puppet::Type::File::ProviderMicrosoft_windows: feature microsoft_windows 
is missing
debug: Creating default schedules
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/home/james/.puppet/ssl/public_keys]: Autorequiring 
File[/home/james/.puppet/ssl]
debug: /File[/home/james/.puppet/ssl/private_keys/pelin.lovedthanlost.net.pem]: 
Autorequiring File[/home/james/.puppet/ssl/private_keys]
debug: /File[/home/james/.puppet/ssl/certs]: Autorequiring 
File[/home/james/.puppet/ssl]
debug: /File[/home/james/.puppet/var/state/state.yaml]: Autorequiring 
File[/home/james/.puppet/var/state]
debug: /File[/home/james/.puppet/var/run]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/ssl/certificate_requests]: Autorequiring 
File[/home/james/.puppet/ssl]
debug: /File[/home/james/.puppet/ssl/private_keys]: Autorequiring 
File[/home/james/.puppet/ssl]
debug: /File[/home/james/.puppet/var/log]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/var]: Autorequiring File[/home/james/.puppet]
debug: /File[/home/james/.puppet/var/state]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/var/client_yaml]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/var/state/graphs]: Autorequiring 
File[/home/james/.puppet/var/state]
debug: /File[/home/james/.puppet/var/clientbucket]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/ssl/public_keys/pelin.lovedthanlost.net.pem]: 
Autorequiring File[/home/james/.puppet/ssl/public_keys]
debug: /File[/home/james/.puppet/ssl/certs/ca.pem]: Autorequiring 
File[/home/james/.puppet/ssl/certs]
debug: /File[/home/james/.puppet/var/state/classes.txt]: Autorequiring 
File[/home/james/.puppet/var/state]
debug: /File[/home/james/.puppet/var/facts]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/ssl/private]: Autorequiring 
File[/home/james/.puppet/ssl]
debug: /File[/home/james/.puppet/var/lib]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/var/client_data]: Autorequiring 
File[/home/james/.puppet/var]
debug: /File[/home/james/.puppet/ssl]: Autorequiring File[/home/james/.puppet]
debug: Finishing transaction -614679468
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1292448079'
debug: Finishing transaction -615403088
info: FileBucket adding /tmp/bc.rb.old as {md5}a953d0df10b1dff4a3c971a6ba431419
info: /Stage[main]//File[/tmp/bc.rb.old]: Filebucketed /tmp/bc.rb.old to puppet 
with sum a953d0df10b1dff4a3c971a6ba431419
notice: /Stage[main]//File[/tmp/bc.rb.old]/content: content changed '{none}' to 
'{md5}6f1ed002ab5595859014ebf0951522d9'
debug: Finishing transaction -615382798
debug: Storing state
debug: Stored state in 0.03 seconds

result:
$ cat bc.rb.old
$
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to