Best way to run script on every node after apply?
I need to run a script after every puppet run. What is the best way of doing this? For example, let's say the script is /usr/bin/updateStatus.sh and that script needs to be called on every node after a puppet run. I know how to inclue in every init.pp file, but figure there is a better approach to this.
Just read above and want to clarify a bit. Say I have 20 nodes. Any time a puppet run is done on any node, I need updateStatus.sh to run on that node. I hope that is clear.