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

Hiera interpolation on key changed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: PUP 4.9.0
    • Fix Version/s: PUP 4.9.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      A lookup that maps to a value which is a hash using interpolated keys:

      1. the keys in such values are resolved
      2. it is possible to navigate to the values behind such keys using dot notation
      Show
      A lookup that maps to a value which is a hash using interpolated keys: the keys in such values are resolved it is possible to navigate to the values behind such keys using dot notation
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDE 2017-02-08
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The hiera 5 implementation in Puppet 4.9.0 introduced a regression that caused interpolation of keys in nested hashes to result in no interpolation taking place. This is now fixed.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      covered by unit tests

      Description

      On the latest puppet agent, with the new Hiera the a (yaml) key is not interpolated to its name.
      Yaml snippet:

      sssd::config:
        'sssd':
          'domains': '%{profile::defaults::krb5realm}'
      <snip>
        "domain/%{profile::defaults::krb5realm}":
          'cache_credentials': true
      <snip>
      

      Previous release this compiled to sssd.conf:

      [sssd]
      domains = FULL_KRB5_REALM
      <snip>
      [domain/FULL_KRB5_REALM]
      cache_credentials = true
      <snip>
      

      However, since puppet agent 1.9.0 this happens:

      [sssd]
      domains = FULL_KRB5_REALM
      <snip>
      [domain/%{profile::defaults::krb5realm}]
      cache_credentials = true
      <snip>
      

      The variable is available, since it is used before, but it is not interpolated.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Heidistein Arjen Heidinga
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support