anchor.diff:                      {cleanup,     {rabbit_autocluster_consul, shutdown, []}},
                       {enables,     pre_boot}]}).
   
  --define(DEFAULT_HOST, "localhost").
  +-define(DEFAULT_HOST, "127.0.0.1").
   -define(DEFAULT_PORT, 8500).
   
   -define(MIME_TYPE, "application/json").
  
positive.code: %% @end
  %%
  register() ->
    io:format("Query Body: ~p~n", [registration_body()]),
    case httpc:request(post, {build_url("agent/service/register"),
                              [], ?MIME_TYPE, registration_body()},
                       [], []) of
  
negative.code:       V
    end.
  
  
  
  %% @private
  %% @spec join_cluster(term()) -> ok
  %% @doc Have the current node join a cluster using the specified discovery node
  %% @end
  %%
  join_cluster([]) -> ok;
  join_cluster(Nodes) ->
    io:format("              Joining existing cluster.~n~n"),
    application:stop(rabbit),
    mnesia:stop(),
    rabbit_mnesia:reset(),
    rabbit_mnesia:join_cluster(lists:nth(1, Nodes), disc),
    mnesia:start(),
    rabbit:start(),
    ok.
  
  
  %% @private
  %% @spec registration_body() -> list()
  %% @doc Return the appropriate registration body based upon if the cluster
  