Uploaded image for project: 'Documentation (moved to puppet.atlassian.net)'
  1. Documentation (moved to puppet.atlassian.net)
  2. DOCUMENT-459

Node scope variables cannot be used in Hiera configuration files

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Resolution: Won't Do
    • Hiera
    • Ubuntu 14.04, Puppet 3.4.3 (OpenSource), Hiera 1.3, YAML configuration

    • Minor
    • 1 - 1-5% of Customers
    • 1 - Superficial
    • 1 - ?

    Description

      The documentation implies that node-scope variables can be used in Hiera configuration files (Found at https://docs.puppetlabs.com/hiera/1/variables.html). Under the section 'Passing Variables to Hiera -> From Puppet -> Best practices' it says:

      "Usually avoid referencing user-set local variables from Hiera. Instead, use facts, built-in variables, top-scope variables, node-scope variables, or variables from an ENC whenever possible."

      I have also created a StackOverflow question on this issue, just in case the documentation is correct, but doesn't describe the implementation of using node-scope variables. That can be found at - http://stackoverflow.com/questions/33679671/puppet-using-node-scope-variables-in-hiera-config.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Chriswright96 Chris Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support

                Time Tracking

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 1 week
                  1w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified