Find out when an exported custom type goes away?

asked 2016-08-25 08:45:36 -0600

tl;dr; how can I find out when a custom type (which is an exported resource) goes away?

If I collect these custom types on a central machine I can receive a notify on them, something like:

  backup::node <<| |>> {
    notify => Exec['add_backup_hosts'],

But how can I notice when they go away?

If this was a nagios type I could catch it with a purge.

My current solution involves an intermediate step of a directory full of files where each file is the fqdn of the node, but I know there must be a better way :)

edit retag flag offensive close merge delete


Kai Burghardt gravatar imageKai Burghardt ( 2016-09-03 19:06:22 -0600 )edit