Re: [Puppet Users] Run stages frustration

2012-12-17 Thread Erik Dalén
This works (was added sometime during 2.6 cycle I think). class foo ($stage = main) { ... } include foo On Dec 14, 2012 9:52 PM, "Jakov Sosic" wrote: > Hi. > > I am wondering why can't run stages get set inside the class? > > For example: > > class foo { > stage main > } > > Because, if I w

Re: [Puppet Users] Run stages frustration

2012-12-15 Thread Keiran Sweet
Hi There, I do a similar thing with my environment, I apply a class called "applysoe" to all nodes that is responsible for applying my modules and classes to nodes in a specific order as the ENC i use didn't initially support it. Have you looked at the foreman ? The imminent release of 1.1 suppo

Re: [Puppet Users] Run stages frustration

2012-12-14 Thread Jakov Sosic
On 12/14/2012 09:52 PM, Jakov Sosic wrote: > Hi. > > I am wondering why can't run stages get set inside the class? > > For example: > > class foo { > stage main > } > > Because, if I want to use stages, I have to declare my class as > parametrized => so I can't use include or require anywhere

[Puppet Users] Run stages frustration

2012-12-14 Thread Jakov Sosic
Hi. I am wondering why can't run stages get set inside the class? For example: class foo { stage main } Because, if I want to use stages, I have to declare my class as parametrized => so I can't use include or require anywhere else... I thought of a different approach, like: class foo_wrapp