Hi,
[...]
> I know I'm doing something stupid, but I can't figure it out. Any help
> greatly appreciated.
>
>
Look this small example:
matti@acrux ~ $ cat - | puppet 2> /dev/null
$array = ['abc', 'def', 'xyz']
define iterator {
notice "You have said: ${name}"
}
iterator { $array: }^D
notice: Scope(Iterator[abc]): You have said: abc
notice: Scope(Iterator[def]): You have said: def
notice: Scope(Iterator[xyz]): You have said: xyz
notice: Finished catalog run in 0.05 seconds
matti@acrux ~ $
I hope that helps :-)
KW
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/G2POKookyBwJ.
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.