[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-10-27 Thread Henrik Lindberg
On 2013-26-10 24:47, Nick Fagerlund wrote: Hi all! Docs team here. It looks like recursive Hiera data lookups were merged via pull request 152. However, we have no preliminary documentation for how this works and what the limitations are -- across the multiple discussion threads and multiple out

Re: [Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-07-03 Thread Trevor Vaughan
+1 Henrik has quite accurately described the use case that I'm looking for. Trevor On Wed, Jul 3, 2013 at 11:31 AM, Henrik Lindberg < henrik.lindb...@cloudsmith.com> wrote: > On 2013-03-07 10:48, Erik Dalén wrote: > > I agree that it feels odd to put code inside data though. But it is a >> ve

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-07-03 Thread Henrik Lindberg
On 2013-03-07 10:48, Erik Dalén wrote: I agree that it feels odd to put code inside data though. But it is a very effective way to reuse forge modules without having to modify them and not having to hardcode or duplicate a lot of data that can be looked up using some function. To me the disti

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-27 Thread Henrik Lindberg
On 2013-27-06 18:28, Ashley Penney wrote: I hate to ask this but could you give an example here? I just made an attempt to read ARM-8 and maybe I'm just not that smart but I found it almost impossible to understand. I couldn't find anything that looked like the reusing of a subnet in other clas

Re: [Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-27 Thread Ashley Penney
On Thu, Jun 27, 2013 at 10:43 AM, Henrik Lindberg < henrik.lindb...@cloudsmith.com> wrote: > >> Then you will probably like the proposal in ARM-8 that allows mapping > the parameters of one type onto another. This was added to support exactly > the case you describe; i.e. binding the parameters f

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-27 Thread Henrik Lindberg
On 2013-27-06 6:33, Wil Cooley wrote: +1 for the feature; I like Jeff's idea about using the existing sigil, although I like Henrik's nested-function-like suggestion. I think there is a particular case for this when it comes to lazy/busy sysadmins integrating 3rd party modules from Puppet Forge

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Henrik Lindberg
On 2013-26-06 22:37, Andy Parker wrote: Not in hiera 1.0.. If we started allowing \% to mean a literal % then existing hiera data we would hit the situation where a windows path in the data would suddenly stop interpolating. Would that apply to \%{ as well? (i.e. is that a typical thing in a

Re: [Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Andy Parker
> > >>'the data is %{lookup(a_key)}' >> >> >> Expanding hiera interpolations to allow this would actually also allow >> another thing that is asked for: >> https://projects.puppetlabs.**com/issues/16235 >> >> If the %{} syntax allowed more compl

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Henrik Lindberg
On 2013-26-06 18:35, Andy Parker wrote: On Tue, Jun 25, 2013 at 8:15 PM, Henrik Lindberg mailto:henrik.lindb...@cloudsmith.com>> wrote: My thinking is... Hiera allows interpolation of variables from scope. I would like to restrict scope variable interpolation to only accept top-scope

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Henrik Lindberg
On 2013-26-06 15:29, Jeff McCune wrote: What if we just used the existing sigil and searched the hiera hierarchy before searching the Puppet scope? Would this address the magic and syntax concerns? Bingo! if we also state that a name that starts with :: is a scope variable and all others ar

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Henrik Lindberg
On 2013-26-06 15:02, Ashley Penney wrote: On Wed, Jun 26, 2013 at 6:57 AM, Erik Dalén mailto:erik.gustav.da...@gmail.com>> wrote: A big +1 from me for having the feature.. I've needed it a couple of times, and the easiest workaround when not having it is simply data duplication, whi

Re: [Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Andy Parker
On Tue, Jun 25, 2013 at 8:15 PM, Henrik Lindberg < henrik.lindb...@cloudsmith.com> wrote: > On 2013-26-06 3:06, Eric Sorenson wrote: > >> Hi, there's been a lively discussion on an interesting pull request that >> came in: >> >> https://github.com/puppetlabs/**hiera/pull/137

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-26 Thread Jesse Hathaway
> W.r.t interpolation of other hiera keys I have (perhaps surprisingly) > fewer issues. Since it is known at the start of evluation what is bound > to the respective keys and the designer of the data layout is > responsible for both keys there is really no problem (i.e. it is the > same conce

[Puppet-dev] Re: PR hiera/137 - recursive hiera data item lookups

2013-06-25 Thread Henrik Lindberg
On 2013-26-06 3:06, Eric Sorenson wrote: Hi, there's been a lively discussion on an interesting pull request that came in: https://github.com/puppetlabs/hiera/pull/137 In the interest of soliciting input from a wider audience I'd like to move the discussion on this request to the list. Perso