Is there a reasonable way to run a shell command when a file watched by puppet is changed or created?
When you upgrade web apps you often need to run a database script that alters the database to match the needs of the new version of the app.
We would like a way to regulate when this command is run by a puppet managed host.
We thought we could setup a file that puppet would watch and then if it was created/changed we could catch that and run the appropriate command when needed.
Now all file can do is notify a service.
I have to write a fake service to run the command when the service is notified.
Seems ... (more)