Re: [Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Erwin Bogaard
Indeed it was about looking up a value to use as part of a following lookup, so a lookup in a lookup. I was already afraid this would not be possible. Thanks for the suggestion of using separate yaml files, I'll explore that idea further. On Tuesday, 18 May 2021 at 11:17:00 UTC+2 benri...@gmail.

Re: [Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Benjamin Ridley
Hi Erwin and Martin, I think there's a difference here - Erwin it seems you're trying to do nested interpolation, while Martin it appears your example is for lookups nested in hiera data. Erwin as far as I'm aware, nested interpolation in the manner you suggest is not possible. At least I've not

Re: [Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Martin Alfke
Hi Erwin, Nested lookups are possible. We did a blog post on this topic: https://blog.example42.com/2020/01/21/hiera-nested-lookups/ Just be sure: A nested lookup (like in your example) always returns a string. If you need arrays or

[Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Erwin Bogaard
Hi, I've been looking for this for a ling time, but can't find a definitive answer to my question: is it possible to use a lookup in a lookup? For example: aaa::bbb: "mvn:com.xxx.bus/xxx-features/%{lookup('xxx::apps::env_hash.%{lookup('xxx::apps::env')}.yyy.version')}/xml/features" Should lead