anchor.diff:      end.
   
   %% @private
  -headers() ->
  -    case dcos() of
  -        "false" ->
  +headers(Orchestration) ->
  +    Token = os:getenv("TOKEN"),
  +
  +    case Orchestration of
  +        mesos ->
               [];
  +        kubernetes ->
  +            [{"Authorization", "Bearer " ++ Token}];
           _ ->
               []
       end.
   
   %% @private
  -get_request(Url, DecodeFun) ->
  -    Headers = headers(),
  +get_request(Url, DecodeFun, Orchestration) ->
  +    Headers = headers(Orchestration),
       case httpc:request(get, {Url, Headers}, [], [{body_format, binary}]) of
           {ok, {{_, 200, _}, _, Body}} ->
               {ok, DecodeFun(Body)};
  
positive.code:     os:getenv("IP", "127.0.0.1").
  
  %% @private
  generate_task_url(Task) ->
      IP = ip(),
      DCOS = dcos(),
      case DCOS of
  
negative.code: %%%===================================================================
  
  %% @doc Generate a list of Erlang node names.
  generate_mesos_nodes(#{<<"app">> := App}) ->
      #{<<"tasks">> := Tasks} = App,
      Nodes = lists:map(fun(Task) ->
                  #{<<"host">> := Host,
                    <<"ports">> := [_WebPort, PeerPort]} = Task,
          generate_mesos_node(Host, PeerPort)
          end, Tasks),
      sets:from_list(Nodes).
  
  %% @doc Generate a single Erlang node name.
  generate_mesos_node(Host, PeerPort) ->
      Name = "lasp-" ++ integer_to_list(PeerPort) ++ "@" ++ binary_to_list(Host),
      {ok, IPAddress} = inet_parse:address(binary_to_list(Host)),
      Node = {list_to_atom(Name), IPAddress, PeerPort},
  