Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7333

make it possible to control partial ordering of layers

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Epic Link:
    • Sub-team:
    • Team:
      Froyo
    • Story Points:
      2
    • Sprint:
      PDE 2017-04-05, PDE 2017-04-19, Language Triage
    • QA Risk Assessment:
      Needs Assessment

      Description

      When transitioning to data in environments and when dealing with different versions of modules (with various degree of quality of their data). It is of importance to be able to define that entries in a global or environment hiera.yaml has lower precedence than those normally having lower precedence.

      While these can be achieved with PUP-7332 as a kind of filter it makes it difficult to do the same with an existing data function. The typical example here would be to have a common layer in the global hiera.yaml that kicks in after the environment, or an entry in an environment that kicks in after modules. It is meaningless to have this in a module's hiera.yaml.

      An easy way to configure this is to add a kind of function called layer that accepts environment or modules. If this is present in a hierarchy the lower level is visited at that point in the higher layer's hierarchy. If not present, the lower precedence layer is automatically visited after the higher layer's precedence (as before this ticket).

      The entry layer: environment is only allowed in a global hiera.yaml, and the entry layer: modules is only allowed in an environment's hiera.yaml. The module layer accepts none of those.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support