**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 :)
↧