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

Does not allow $environment in hiera_config variable for no good reason and falls back to non-working path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.1, PUP 3.7.2, PUP 3.7.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Linux (Debian), puppetmaster with passenger

    • Template:

      Description

      Hi,

      from 3.7.1 on appearently puppet does no longer allow a setting in puppet.conf, part [master] of hiera_config that looks like

      1. Use an environment specific hiera config file
        hiera_config = $environmentpath/$environment/etc/hiera.yaml

      Up to, including, 3.7.0 this worked perfectly.
      The directory expands to /etc/puppetmaster/environments/$environment/etc/hiera.yaml here, and has environment specific hiera data.

      Starting with 3.7.1 instead the following unhelpful message appears:

      You cannot interpolate $environment within 'hiera_config' when using directory environments. Its value will remain /etc/puppetmaster/environments/$environment/etc/hiera.yaml.

      This is a lie too: The value is NOT what it says. Testing shows that the value remains at "/etc/puppetmaster/hiera.yaml" which is obviously as wrong as it can be.

      Please undo whatever change broke this, as seperate hiera data per environment is a must-have feature.

        Attachments

          Activity

            People

            • Assignee:
              henrik.lindberg Henrik Lindberg
              Reporter:
              Ganneff Joerg Jaspert
              QA Contact:
              Kurt Wall
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support