Issue #5065 has been reported by Jascha Lee. ---------------------------------------- Bug #5065: subscribe/notify w/o managing content via checksum is broken https://projects.puppetlabs.com/issues/5065
Author: Jascha Lee Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: 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: 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, } } /etc/puppet/manifests/nodes.pp: node default { include mrepo } whack provided this workaround (http://pastebin.com/vHy0e5eP): add: source => /some/other/file 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.
