Wrap text
|
|
file{"/tmp/trigger":
content => "boom",
notify => Exec["helloworld"]
}
exec{"helloworld":
command => "date > /tmp/triggered",
path => "/bin",
refreshonly => true,
}
debug: Creating default schedules
debug: Finishing transaction -605753368 with 0 changes
debug: //File[/tmp/trigger]/notify: subscribes to Exec[helloworld]
debug: //File[/tmp/trigger]: File does not exist
debug: //File[/tmp/trigger]/checksum: Initializing checksum hash
debug: //File[/tmp/trigger]: Changing content
debug: //File[/tmp/trigger]: 1 change(s)
debug: //File[/tmp/trigger]: Creating checksum {md5}65079b006e85a7e798abecb99e47c154
notice: //File[/tmp/trigger]/content: created file with contents {md5}65079b006e85a7e798abecb99e47c154
info: //File[/tmp/trigger]: Scheduling refresh of Exec[helloworld]
notice: //Exec[helloworld]: Triggering 'refresh' from 1 dependencies
debug: //Exec[helloworld]: Executing 'date > /tmp/triggered'
debug: Executing 'date > /tmp/triggered'
debug: Finishing transaction -606067428 with 1 changes
% cat /tmp/triggered
Thu Jul 3 18:22:14 BST 2008
|