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
--
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/d57c9444-8b38-4394-a03b-8442c42a3662n%40googlegroups.com.