Issue #2658 has been updated by Luke Kanies.

So it sounds like the current consensus is that this is worth turning into more 
complete code, but there are still some usability issues.

It shouldn't be *too* hard to add the ability to selectively pick one or more 
stages, with a '--stage' option or something.

It actually feels like we're at the point where we need a generalized means of 
selecting which portions of the catalog you want to run.  We can already select 
by tag, people want to select an individual resource, and there are probably 
lots of other means people want to use to reduce the portion of the catalog 
being run.

Anyone inspired enough to open a new ticket on that?

In the meantime, I might just implement this without that ability, and it can 
always be added later.

The only concern I have is whether it's sufficient to restrict stages to just 
classes, and if so, what the best way of specifying them is.  Do we always 
stick to the resource-form of a class?
<pre>
class { foo: stage => pre }
</pre>
Should you be able to declare it when the class is defined?
<pre>
class foo stage pre { ... }
</pre>
Is there some other way?
----------------------------------------
Feature #2658: Add puppet "run stages"
http://projects.puppetlabs.com/issues/2658

Author: Robin Bowes
Status: Needs design decision
Priority: Normal
Assigned to: Luke Kanies
Category: 
Target version: 
Affected version: 0.25.0
Keywords: 
Branch: 


Sometimes, there are certain specific manifests that you want to run before all 
others.

Similarly, there may be others that you want to run after all others have 
finished.

I'd like to see support for this added to puppet.

By default, all manifests would be "run" in the "main" stage. However, all 
types would support an additional parameter: stage => 'pre' or stage => 'post.

Anything labelled as "pre" would be executed first, followed by anything 
labelled "main" or with no explicit stage, then finally anything labelled 
"post".

The stages could even be user-defined by specifying them in some config file, 
eg:

[stages]
default=main
1=pre
2=main
3=post

Any support for this sort of idea?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to