Re: [Puppet Users] convert hiera value to string array using lookup in hiera

2023-11-13 Thread Martin Alfke
Hi, Lookup always returns strings. You can use alias to retrieve the original value data type. https://www.puppet.com/docs/puppet/7/hiera_merging.html#alias-function Hth, Martin > On 13. Nov 2023, at 17:35, 'Tidhar Klein Orbach' via Puppet Users > wrote: > > Hi, > > I have a hiera file

[Puppet Users] convert hiera value to string array using lookup in hiera

2023-11-13 Thread 'Tidhar Klein Orbach' via Puppet Users
Hi, I have a hiera file that belongs to a server group. in that file there is a key that expects a list of services. for example job_name: "my-job" feature: services: - 'foo' - 'bar' - 'baz' I want to be able to override the values, so I tried to define a default key like: