Re: [Puppet Users] Issue with lookup / hiera in yaml

2018-08-16 Thread Helmut Schneider
Henrik Lindberg wrote: > You cannot give arguments to lookup as an interpolation function > inside of data. Use the commented out variant. Then use > lookup_options (in your data) to configure that lookup of 'variables' > should always be a 'deep' merge. Great, works now, thanks a lot! -- You

Re: [Puppet Users] Issue with lookup / hiera in yaml

2018-08-16 Thread Henrik Lindberg
On 2018-08-16 15:51, Helmut Schneider wrote: Henrik Lindberg wrote: If your data looks like this: variables: baculaWorkingDirectory: '/var/lib/bacula' Then you do not have a variables.debug key - you can lookup variables, or variables.baculaWorkingDirectory common.yaml: ---

Re: [Puppet Users] Issue with lookup / hiera in yaml

2018-08-16 Thread Helmut Schneider
Henrik Lindberg wrote: > If your data looks like this: > > >> variables: > >>baculaWorkingDirectory: '/var/lib/bacula' > > Then you do not have a variables.debug key - you can lookup > variables, or variables.baculaWorkingDirectory common.yaml: --- netconfig: variables: debug:

Re: [Puppet Users] Issue with lookup / hiera in yaml

2018-08-16 Thread Henrik Lindberg
On 2018-08-16 14:47, Helmut Schneider wrote: Helmut Schneider wrote: common.yaml: variable: baculaWorkingDirectory: '/var/lib/bacula' variables: baculaWorkingDirectory: '/var/lib/bacula' config.pp: [...] $variables = lookup({ "name" => "variables", "merge" => {

Re: [Puppet Users] Issue with lookup / hiera in yaml

2018-08-16 Thread Helmut Schneider
Helmut Schneider wrote: > common.yaml: > variable: > baculaWorkingDirectory: '/var/lib/bacula' > > variables: > baculaWorkingDirectory: '/var/lib/bacula' > > config.pp: > [...] > $variables = lookup({ > "name" => "variables", > "merge" => { > "strategy" => "deep", >

[Puppet Users] Issue with lookup / hiera in yaml

2018-08-15 Thread Helmut Schneider
Hi, common.yaml: variable: baculaWorkingDirectory: '/var/lib/bacula' variables: baculaWorkingDirectory: '/var/lib/bacula' config.pp: [...] $variables = lookup({ "name" => "variables", "merge" => { "strategy" => "deep", "knockout_prefix" => "--", #