The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #10248

Document fact access in templates using instance variables

Added by R.I. Pienaar almost 3 years ago. Updated over 1 year ago.

Status:ClosedStart date:10/24/2011
Priority:HighDue date:
Assignee:-% Done:

0%

Category:documentation
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

In a template facts can be accessed using @operatingsystem, this should be documented and supported long term.

This came in around 2.6 but I am not sure exactly when…

History

#1 Updated by James Turnbull almost 3 years ago

  • Status changed from Unreviewed to Needs Decision

#2 Updated by Nigel Kersten over 2 years ago

  • Status changed from Needs Decision to Accepted
  • Priority changed from Normal to High

So this is totally deliberate and part of git commit 03c76deb60927375e9b35c74a903130930ffddf2

Will fill in more details later, but had a chat to Luke about it.

#3 Updated by Nigel Kersten over 2 years ago

Somewhat related, investigate scope["var"] in templates.

#4 Updated by Nigel Kersten over 2 years ago

  • Assignee changed from Nick Fagerlund to Nigel Kersten

#5 Updated by Andrew Parker over 1 year ago

  • Status changed from Accepted to Closed
  • Assignee deleted (Nigel Kersten)

This seems to be documented now. There is now the issue of deprecating the other syntax, which is in #19058.

Also available in: Atom PDF