Issue #5566 has been updated by Nigel Kersten. Status changed from Accepted to Needs more information Assignee changed from Nigel Kersten to James Turnbull
Actually, let me get some clarification. James, what do you think the behavior of checksum => none should be when source/content are specified? It seems like we have two options: * fail with a manifest parse error (like specifying source *and* content) * assume the target file is always out of sync and apply the content anyway The former seems preferable to the latter. ---------------------------------------- Bug #5566: Files with checksum => none delete file content https://projects.puppetlabs.com/issues/5566 Author: James Turnbull Status: Needs more information Priority: Immediate Assignee: James Turnbull 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.
