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

Puppet::Node::Facts allows a fact named 'trusted' that collides with the reserved top scope puppet variable name 'trusted'.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Platform 2014-10-15

      Description

      There is a top scope variable named 'trusted' which is reserved by the compiler for the trusted data that the server gathers from the request's certificate. A node's facts are also made available as top scope variables during puppet execution, and if the node has a 'trusted' fact, either created by the user, or retrieved from a node terminus like PuppetDB which stores the trusted data collected by the master for that node as 'trusted', then an "Attempt to assign to a reserved variable name" error is raised by the compiler: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/scope.rb#L629

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andy Andrew Parker
              Reporter:
              joshua.partlow Joshua Partlow
              QA Contact:
              Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support