Re: [Puppet Users] Hiera data repetition

2021-02-28 Thread Martin Alfke
Hi Karsten, > On 27. Feb 2021, at 18:18, Karsten Heymann wrote: > > Hi Martin, > > regarding your "no lookup" policy, how do you handle for example deep merge > lookups. They cannot be used with automatic data binding, or am I wrong? > we set the merge behavior using hiera data

Re: [Puppet Users] Hiera data repetition

2021-02-27 Thread Henrik Lindberg
On 2021-02-27 18:18, Karsten Heymann wrote: Hi Martin, regarding your "no lookup" policy, how do you handle for example deep merge lookups. They cannot be used with automatic data binding, or am I wrong? Regards Karsten You can specify lookup_options per key in the hiera data itself. One

Re: [Puppet Users] Hiera data repetition

2021-02-27 Thread Karsten Heymann
Hi Martin, regarding your "no lookup" policy, how do you handle for example deep merge lookups. They cannot be used with automatic data binding, or am I wrong? Regards Karsten Am Sa., 27. Feb. 2021 um 13:06 Uhr schrieb Martin Alfke : > Hi > > > On 25. Feb 2021, at 11:59, Dmitry Nurislamov

Re: [Puppet Users] Hiera data repetition

2021-02-27 Thread Martin Alfke
Hi > On 25. Feb 2021, at 11:59, Dmitry Nurislamov wrote: > > Hello. Sometimes it is desirable to define Hiera variables for usage in Hiera > itself, i.e. variables that won't be looked up from Puppet manifests. We do > this to avoid repetition. Here's an example of a variable used only in the

[Puppet Users] Hiera data repetition

2021-02-26 Thread Dmitry Nurislamov
Hello. Sometimes it is desirable to define Hiera variables for usage in Hiera itself, i.e. variables that won't be looked up from Puppet manifests. We do this to avoid repetition. Here's an example of a variable used only in the file it is defined: _internal_api_host: 'int.api.example.com'