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

Need prescriptive method for combining 'lookup' with ENCs and the Roles/Profiles pattern (aka, lookup should look up the entire stack)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: PUP 4.7.0, PUP 4.10.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      All

    • Template:
    • Acceptance Criteria:
      Hide

      simplib::lookup can die the death it deserves.

      Show
      simplib::lookup can die the death it deserves.
    • Epic Link:
    • Sub-team:
    • Team:
      Froyo
    • QA Risk Assessment:
      Needs Assessment

      Description

      So, lookup is great, I like it, but I was dismayed to find that I had to write overly complex code to make parameter lookups work when I wanted to use the lookup function as a parameter default.

      We ended up implementing simplib::lookup over at https://github.com/simp/pupmod-simp-simplib/blob/master/lib/puppet/functions/simplib/lookup.rb which, let's face is, is a horrible way to get around this issue.

      So, I would like to propose that 'lookup', start at the top of the traditional Puppet Hierarchy until such time that it is killed off.

      This would mean:

      Hiera -> Class Declarations (Profiles) -> normal lookup() stuff

      If there is a better way to do this, I would very much like to know it. Unfortunately, I couldn't find one.

        Attachments

          Activity

            People

            • Assignee:
              eric.sorenson Eric Sorenson
              Reporter:
              peiriannydd Trevor Vaughan
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support