Issue #4386 has been updated by Markus Roberts. Subject changed from Unexpected behavior in between nodes to Absent files should not be treated as empty when fileserving Status changed from Investigating to Needs design decision Assignee deleted (Markus Roberts) Priority changed from High to Normal
---------------------------------------- Bug #4386: Absent files should not be treated as empty when fileserving http://projects.puppetlabs.com/issues/4386 Author: Tom Vachon Status: Needs design decision Priority: Normal Assignee: Category: file Target version: Affected version: 2.6.0 Keywords: Branch: I am seeing inconstant behavior with file copies. I have pasted my code below and some proof. One all except one node (all worked prior to 2.6.0 upgrade), the /tmp/sudoers.tmp gets copied from the proper source. When run on the "bad" node, the /tmp/sudoers.tmp is copied over empty and hoses my sudoers file (somehow a empty file passed the visudo smoketest). ### executing every time (and null'ing the file) ### [r...@pbsec01 tmp]# wc -l sudoers.tmp 0 sudoers.tmp ### executing properly (only when changed, etc) ### [r...@pbjump01 tmp]# wc -l sudoers.tmp 63 sudoers.tmp ### module config ### class sudo { file { "sudoers": name => "/etc/sudoers", source => "/tmp/sudoers.tmp", owner => "root", group => "root", mode => "440", require => Exec['check_sudo'], } file { "sudo_tmp": name => "/tmp/sudoers.tmp", source => "puppet:///sudo/sudoers", before => Exec['check_sudo'], } exec { "check_sudo": command => "visudo -c -f /tmp/sudoers.tmp", unless => "diff /tmp/sudoers.tmp /etc/sudoers", } } I have attached the output of a run on the "bad" client with verbose and test enabled. -- 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.
