In addition to dependencies, resources can also enter a similar but different mutual relation. Remember the pieces of output that we skipped earlier:
Puppet mentions that refreshes would have been triggered for the reason of an event. Such events are emitted by resources whenever Puppet acts on the need for a sync action. Without explicit code to receive and react to events, they just get discarded.
The mechanism to set up such event receivers is named in analogy to a generic publish/subscribe queue—resources get configured to react to events using the
subscribe metaparameter. There is no
publish keyword or parameter, ...