Not sure if this works - using the expression: var == array doesn't
really make sense when you think about it as its trying to directly
compare a string with an array (which should fail). If there was an
'in' expression it would make more sense.

Of course this is academic. Because you could just tag the resources,
and search for the tag instead.

@file { $myarray:
  ensure => directory,
  tag => "myfiles"
  ...
}

File <| tag == "myfiles" |>

It should do the same trick.

ken.

On Apr 13, 11:39 pm, Roy Nielsen <[email protected]> wrote:
> Hello,
>
> I want to vitualize a resources - but want to realize an array of
> resources...
>
> somthing like:
>
> @file { $myarray :
>     ensure => directory,
>     ...
>
> }
>
> Can I realize the resources with:
>
> File <| title == $myarray |>
>
> ?
>
> Thanks,
> -Roy

-- 
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.

Reply via email to