-spec pre_join(fun((cluster_id(), Remote, node(),
join_intent()) -> ok | {error, _}),
classy_hook:conf()) -> classy_hook:hook() when Remote ::
site().
Register a hook that is executed before the local node joins a different cluster.
WARNING: this hook should not have side effects. It should only check if it is ok to join.