Uploaded image for project: 'Hiera'
  1. Hiera
  2. HI-535

Wrong default datadir value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: HI 3.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS 7 up to date with puppetlabs 7/PC1 repository

    • Template:
    • Team:
      Puppet Developer Experience

      Description

      Hi

      Hiera's CLI is giving me

      "Cannot find datafile /etc/puppetlabs/code/environments//hieradata/common.yaml, skipping". environment value is missing.
      

      That's because the default value is %{environment} instead of %{::environment}

      See here:

      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/hiera/util.rb:44:      File.join(code_dir, 'environments' , '%{environment}' , 'hieradata')
      

      Best regards,

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            remy Rémy Garrigue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support