Puppet: System Administration Automated

Support

Ticket #486 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 7 months ago

tag usage should not be dependent on file order

Reported by: puppet Assigned to: luke
Priority: normal Milestone: unplanned
Component: language Version:
Severity: normal Keywords:
Cc: Triage Stage: Needs design decision
Attached Patches: None Complexity: Hard

Description

hello,

the tag() function is sensible to the order the parser read the .pp files. It makes impossible to have reliable tagging in definitions:

case tagged(apache) {

true: { package { webmin-apache: ensure => latest } }

}

depending on the file orders it will work or not.

comment by Luke on this:

At this point the tagging is file-order dependent: Puppet's parser can only see tags that were created before the current line.

I expect that your webmin definition is used before your apache2 definition, which is why you're having this problem.

As soon as I can figure out how to solve this problem, I will.

so, i fill a bug :)

regards, Ghislain.

Change History

02/28/07 07:49:55 changed by luke

  • summary changed from tag is file order sensitive to tag usage should not be dependent on file order.

I really don't know if this will ever be fixed, but at best it's an enhancement. This should mostly be fixed when node classification moves to an external tool, as all class tags will be set before the configuration is even compiled.

02/28/07 07:50:18 changed by luke

  • status changed from new to assigned.
  • type changed from defect to enhancement.

04/05/07 22:42:12 changed by luke

  • specification set to Unnecessary.
  • patch set to None.
  • complexity set to Hard.
  • milestone set to unplanned.
  • approval set to Unnecessary.
  • compatibility set to Unknown.
  • stage set to Needs design decision.

04/24/08 07:39:24 changed by luke

  • component changed from puppet to language.

04/24/08 07:40:11 changed by luke

  • status changed from assigned to closed.
  • resolution set to wontfix.

This can't ever be fixed, as far as I know, so I'm closing this unless someone can come along with a solution.