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

Enhance blueprint support for using references

    XMLWordPrintableJSON

Details

    • Story
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • ambari-server
    • None

    Description

      An exported blueprint should provide ready portability i.e. an exported blueprint be usable without changes to deploy another cluster. Some elements that are masked or omitted use tokens or placeholders. These have been called references in previous Jiras. A reference follow some convention that indicates that it is a reference by using a keyword and a pattern e.g.
      ReferenceName:configType:configVersion:propertyName

      References would be a good indicators of properties that user could choose to customize before deploying the cluster. It could also indicate the need for a "global" default for that property in the cluster template. Examples:

      • Passwords
      • Hostnames
      • External databases

      Currently Ambari has a concept of SECRET references. E.g.
      SECRET:hive-site:2:hive.server2.keystore.password

      These are used for masking the password when a blueprint is exported and the reference itself is not exported. It would be useful to have an reference exported as long as it is processed appropriately during deployment.

      Similar to the secret reference, for hostnames in a one could have,
      HOST:kerberos-env:-1:kdc_host
      and so forth.

      For any reference, in the cluster template there would be a corresponding property that would be used for substituting a value for the reference during deployment if the registered blueprint had such references. Currently such behavior is used if a property of type password is not specified (default_password). Such references could be used to tag properties to flag them to be the ones that users must customize or include in the cluster template. They can also serve a way to annotate/comment parts of the blueprint JSON.

      Attachments

        1. Blueprints_enhancement-AMBARI-15395-v3.docx
          28 kB
          Shantanu Mundkur
        2. Blueprints_enhancement-AMBARI-15395-v3.pdf
          52 kB
          Shantanu Mundkur

        Activity

          People

            arborkar Amruta Borkar
            antndk Shantanu Mundkur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: