How can I require an array of resources in puppet?

Solution 1:

Ok, never mind... The same array of arguments can be used, apparently:

$bars = [ "a", "b", "c" ]
foo { $bars : }
exec { "echo Done" :
    require => [ Foo[$bars] ]
}