Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Perhaps I am mistaken, but it seems there is currently no way to dynamically reference the hostname of a task and use it as an env variable value. I'm sure the use cases for this are obvious and many.

      Edit:
      To be specific: currently, the json usage
      "env":

      { "CASSANDRA_BROADCAST_ADDRESS":"$HOSTNAME" }

      will set CASSANDRA_BROADCAST_ADDRESS to the value "$HOSTNAME", instead of trying to resolve it to a valid hostname based on the machine the task is then run on.
      /Edit

      This is exceptionally useful when working with docker apps that will use the conatiner's hostname as a default for some env variable, and it needs to be overridden to the actual machine's hostname.

      A good example: https://hub.docker.com/_/cassandra/
      Edit:
      Using the value "CASSANDRA_BROADCAST_ADDRESS":"auto" would set the value to the container hostname, instead of the machine hostname.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                GitHub_bradleyreeves Brad (Inactive)
                Team:
                ( DO NOT USE ) Orchestration Team
                Watchers:
                Jason Gilanfarr (Inactive), Jean-Louis Rigau, yusufgungor
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: