Bug #3049

Several bits of the language are order dependant

Added by R.I. Pienaar over 2 years ago. Updated 9 months ago.

Status:Accepted Start date:01/14/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:language
Target version:3.X
Affected Puppet version: Branch:
Keywords:
Votes: 0

Description

I am filing this as a bug, could be a feature request too?

anyway, puppet is pointedly a order independent language this is a major tenant of how things work and how manifests gets constructed, nodes populated and so forth – this is probably a discussion on its own but thats my view.

Assuming we agree its all independent of order then functions like defined() should not exhibit weird behavior that is order dependent, this bug is to fix those.

Same holds true for inside templates the variables all_tags and classes


Related issues

related to Puppet - Feature #2956: The parser should use 'futures' for lazy-resolving rvalues Rejected 12/18/2009

History

Updated by James Turnbull over 2 years ago

  • Category set to RAL
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies

Updated by Luke Kanies over 2 years ago

  • Category changed from RAL to language
  • Assignee changed from Luke Kanies to Markus Roberts

This will hopefully be solved in Markus’s Futures work.

Updated by Markus Roberts over 2 years ago

  • Subject changed from Several bits of the language is order dependant to Several bits of the language are order dependant

Updated by Jeff Behl almost 2 years ago

This is a bug in that using the all_tags array (or classes array, for that matter) in a template is definitely not resulting in all tags being inserted. in the client_yaml/catalog/.yaml file I see my class defined under ‘tags:’ as well as under ‘classes:’ yet it will not make it into the template unless the class is explicitly defined on the node. If it’s a part of an ‘include ’ it doesn’t make it. very aggravating. we were hoping to use this feature extensively.

I’m using client and server 25.4

Updated by Robert Gerlach over 1 year ago

As long as this does not work, the samples in http://docs.puppetlabs.com/guides/templating.html should be removed.

Updated by James Turnbull about 1 year ago

  • Assignee changed from Markus Roberts to Nigel Kersten
  • Affected Puppet version deleted (0.25.4rc1)

Updated by Nigel Kersten 9 months ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Nigel Kersten)
  • Target version set to 3.X

Also available in: Atom PDF