Issue #5065 has been updated by Jascha Lee.
Dunno, I'm just going by the doc. But I take it (especially if using checksum => timestamp) that it means "do this if it changes". The checksum parameter just specifies the *type* of checksum method, not the value of the checksum. The implication being that puppet caches the checksum somewhere. By the way, this was using 2.6.2. ---------------------------------------- Bug #5065: subscribe/notify w/o managing content via checksum is broken https://projects.puppetlabs.com/issues/5065 Author: Jascha Lee Status: Investigating Priority: Normal Assignee: Category: Target version: Affected Puppet version: 0.24.5 Keywords: Branch: According to the doc (http://docs.puppetlabs.com/references/0.24.5/type.html#file): Checksum "can also be used to monitor files ... without managing the file contents in any way. You can specify that a file’s checksum should be monitored and then subscribe to the file from another object" However, this does not work: /etc/puppet/manifests/site.pp: <pre> import "nodes" class mrepo { file { "/tmp/runmrepo": checksum => timestamp, # or md5, it doesn't matter } exec { "/bin/date": cwd => "/tmp", subscribe => File["/tmp/runmrepo"], refreshonly => true, } } </pre> /etc/puppet/manifests/nodes.pp: <pre> node default { include mrepo } </pre> whack provided this workaround (http://pastebin.com/vHy0e5eP): add: <pre> source => /some/other/file </pre> and then modify /some/other/file to get the exec to fire. Note also that touching the other file does not trigger the exec, though checksum => timestamp implies it should. -- 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.
