Re: [Puppet Users] Passing variables between stages

2011-07-08 Thread vagn scott
On 07/08/2011 04:10 PM, Chip Schweiss wrote: How to access a variable set in the node declaration from a class that executes in the post stage? The answer is the same whether you use stages or not. Put your variables in a class.Below was tested on puppet 2.7.1. Per node stuff (eg mood)

Re: [Puppet Users] Passing variables between stages

2011-07-08 Thread Chip Schweiss
That leads to the next question. How to access a variable set in the node declaration from a class that executes in the post stage? On Thu, Jul 7, 2011 at 11:51 PM, vagn scott wrote: > > That sounds suspiciously like procedural thinking about a declarative > language. > > You should understand

Re: [Puppet Users] Passing variables between stages

2011-07-07 Thread vagn scott
That sounds suspiciously like procedural thinking about a declarative language. You should understand that in puppet everything is 'set' before anything is 'done'. Stages just help to order the 'get it done' part. So the answer to your question about "a method to access a variable" is: ju

[Puppet Users] Passing variables between stages

2011-07-07 Thread Chip Schweiss
I'm looking for a method to access a variable set in my main state from a class in my post stage? Is this possible? Any know way of passing the information? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to p