test.pp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
{ exec {"touch-foo": command => "/bin/touch /tmp/foo", refreshonly => true } } { file {"/tmp/config.txt": ensure => "present", content => "somestuff", notify => Exec["touch-foo"], } } include a include b |
run it
1 2 3 |
% puppet test notice: //b/File[/tmp/config]/ensure: content changed '{md5}dad7cdb0db24f8cf7ead6606b285903a' to '{md5}dad7cdb0db24f8cf7ead6606b285903a' notice: //a/Exec[touch-foo]: Triggering 'refresh' from 1 dependencies |

