Hi Helmut, This is not working! Within hiera you can use alias or lookup to receive other hiera data values. But you can not combine a lookup with string. https://puppet.com/docs/puppet/7/hiera_merging.html#interpolation_functions-lookup-and-hiera-function <https://puppet.com/docs/puppet/7/hiera_merging.html#interpolation_functions-lookup-and-hiera-function>
Hth, Martin > On 27. Jan 2022, at 16:22, Helmut Schneider <[email protected]> wrote: > > Hi, > > common.yaml: > --- > lookup_options: > paths: > merge: > strategy: 'deep' > knockout_prefix: '--' > variables: > merge: > strategy: 'deep' > knockout_prefix: '--' > paths: > logfilePath: '/var/log' > [...] > > another.yaml: > lookup_options: > paths: > merge: > strategy: 'deep' > knockout_prefix: '--' > variables: > merge: > strategy: 'deep' > knockout_prefix: '--' > variables: > logFile: "%{lookup('paths.logfilePath')}/logfile.log" > [...] > > Notice: /var/log > Notice: /Stage[main]/My_puppet/Logrotate::Include[my_puppet]/Notify[paths > my_puppet:]/message: defined 'message' as '/var/log' > Notice: /logfile.log > Notice: /Stage[main]/My_puppet/Logrotate::Include[my_puppet]/Notify[variables > my_puppet:]/message: defined 'message' as '/openvpn.log' > > Should that work? > > helmut@h2873756:~$ puppet -V > 7.14.0 > helmut@h2873756:~$ > > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/ssudbh%24kou%241%40ciao.gmane.io. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5C8CAA5B-BCC6-4D91-AFDC-C06DE60464D3%40gmail.com.
