On Wed, Mar 7, 2012 at 8:44 AM, Peter Berghold <[email protected]> wrote:
> OK: that was the impression I was under after reading everything that was
> posted to the feature request for this...
Actually, I've mistakenly filed it as a bug. If you use json, you can
parse the parameter via parsejson available in stdlib:
In dashboard set the parameter example to ["foo", "bar"]
ENC output:
parameters:
example: "[\"foo\", \"bar\"]"
In puppet manifests:
$example_array = parsejson($example)
notify { $example_array : }
notice: /Stage[main]//Node[sample]/Notify[bar]/message: current_value
absent, should be bar (noop)
notice: /Stage[main]//Node[sample]/Notify[foo]/message: current_value
absent, should be foo (noop)
Thanks,
Nan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.