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:
feature::services:: 'foo,bar,baz'
and then use it:
job_name: "my-job"
feature:
services: "%{lookup(feature::services)}"
I tried different value variations:
feature::services:: foo,bar,baz
feature::services:: ['foo','bar','baz']
and also using
lookup_options:
feature::services:
convert_to:
- "Array"
- true
but it seems I can't convert the value to string array.
is it possible at all? if so, how can I do it?
thanks,
Tidhar