Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-24 Thread Roman Shaposhnik
On Tue, Feb 12, 2013 at 12:50 PM, jcbollinger wrote: > I am open to the idea of offering architectural advice, but I don't have > either sufficient understanding of your requirements or sufficient > understanding of your current code to offer any at this point. As for > practical advice on your p

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-12 Thread jcbollinger
On Tuesday, February 12, 2013 11:28:28 AM UTC-6, Roman Shaposhnik wrote: > > Now, to a practical matter -- in this particular case (unlike the > other thread :-)) > I genuinely don't see how I can utilize Hiera. Given that the classes > create > the rich state based on facter values/etc (e.g.

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-12 Thread Roman Shaposhnik
On Mon, Feb 11, 2013 at 3:06 PM, jcbollinger wrote: > Puppet DSL does not have such a feature. :-( > You have at least three alternatives: > > Depending on how your classes are arranged, hiera may provide a reasonable > way to address this problem. (Notwithstanding your distinct lack of > enthu

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 4:03:24 PM UTC-6, Roman Shaposhnik wrote: > > On Mon, Feb 11, 2013 at 1:49 PM, Jo Rhett > > > wrote: > > From the snippet you posted, I don't see why you can't pass $var1 into > the > > define. No magic, just straightforward variable passing, right? > > Sure thi

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
On Mon, Feb 11, 2013 at 1:49 PM, Jo Rhett wrote: > From the snippet you posted, I don't see why you can't pass $var1 into the > define. No magic, just straightforward variable passing, right? Sure thing. The trouble is that as I said -- there's *quite* a rich state that these classes create. So i

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Jo Rhett
>From the snippet you posted, I don't see why you can't pass $var1 into the >define. No magic, just straightforward variable passing, right? On Feb 11, 2013, at 9:31 AM, Roman Shaposhnik wrote: > now that dynamic scope lookup is going away, I'm looking > for a good alternative for the following u

[Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
Hi! now that dynamic scope lookup is going away, I'm looking for a good alternative for the following use case: suppose I have a set of classes that all set up a pretty rich internal state with quite a few variables defined in their namespace. On top of that all of them need to do a common set of