Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-11 Thread Vagn Scott
Let's see: Then I could do Stage { ensure = enforcement, } at the top and get the behavior I want: prerequisites are satisfied before moving on. But, what's the use case for relationship? Why would I want that? consider three stages in various combinations of enforcement (e) and relationship

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-11 Thread Vagn Scott
On 06/11/2011 01:06 PM, Nan Liu wrote: I'm not sure if I captured the intention well, essentially still want a way to coarsely organize classes, however without adding any dependency requirement. So deploy user accounts/customization after application deployment, however still proceed with

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Jacob Helwig
Chris Phillips ch...@untrepid.com wrote: On 10 June 2011 02:50, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Chris Phillips
On 10 Jun 2011 07:52, Jacob Helwig ja...@puppetlabs.com wrote: Chris Phillips ch...@untrepid.com wrote: On 10 June 2011 02:50, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Brice Figureau
On Thu, 2011-06-09 at 18:50 -0700, Jacob Helwig wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something reusable that

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Chris Phillips
On 10 June 2011 09:06, Brice Figureau brice-pup...@daysofwonder.com wrote: On Thu, 2011-06-09 at 18:50 -0700, Jacob Helwig wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Vagn Scott
Puppet already has stage[ Main ] which is the only stage it needs to define. All other stages can be defined relative to main and each other, and should be a matter of convention. So I think it would be more fruitful to talk about the purpose of stages, along with their proposed names. For

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 6:50 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 4:35 AM, Vagn Scott vagnsc...@gmail.com wrote: Puppet already has stage[ Main ] which is the only stage it needs to define. All other stages can be defined relative to main and each other, and should be a matter of convention. This is true, but only if you don't

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Dan Bode
On Thu, Jun 9, 2011 at 6:42 PM, Nigel Kersten ni...@puppetlabs.com wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something reusable that integrates seamlessly into existing setups.

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nigel Kersten
On Fri, Jun 10, 2011 at 6:35 AM, Dan Bode d...@puppetlabs.com wrote: On Thu, Jun 9, 2011 at 6:42 PM, Nigel Kersten ni...@puppetlabs.comwrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-10 Thread Nan Liu
On Fri, Jun 10, 2011 at 6:12 AM, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Jun 9, 2011 at 6:50 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Jacob Helwig
On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something reusable that integrates seamlessly into existing setups. This feature

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread vagn scott
A while back I wrote down all the puppet patterns I could think of, and this was one of them. I named it Cradle To Grave, but probably that's not appropriate. However, I was only focusing on puppet runs at the time, so that name popped into my head. It is an instance of the more general pattern

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Martin Alfke
I prefer having a small number of predefined stages in puppet. This makes it easier to share modules which use stages. My suggestion: - a small number of stages is easier to remeber - a samll numer of possibilities makes people think in advance in which stage they need to put their module

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Chris Phillips
On 10 June 2011 02:50, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something