Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12915

Make agent hostname configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • ambari-agent
    • None

    Description

      Currently the agent can either get the hostname from the local system, or you can inject a script to tell it what hostname to use using the 'hostname_script' config value. I would like to add a 'hostname' config value to the agent section of the agent config so we can just tell the agent what hostname to use.

      The scenario this comes up in is that our Ambari setup uses a local DNS domain for internal traffic, but the Ambari API has a public FQDN that we use for the API. It would be much cleaner for us to just specify the hostname in the config rather than jumping through hoops to generate a script to use to derive it.

      https://github.com/apache/ambari/blob/087d9003ecf6af33890e4f48743d7237a30d6438/ambari-agent/src/main/python/ambari_agent/hostname.py#L40

      Attachments

        1. AMBARI-12915.patch
          1 kB
          Greg Hill

        Issue Links

          Activity

            People

              jimbobhickville Greg Hill
              jimbobhickville Greg Hill
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: