|
At present you can do like:
package{"foo": tag => bar}
|
file{"/foo": }
|
|
Package<| tag == "bar" |> -> File["/foo"]
|
I am not aware though of a way to express this relationship inside the file resource, I tried a few things but this seems like it would be nice:
file{"/foo":
|
require => Package <| tag == "bar" |>
|
}
|
This strikes me as a more natural looking fit than above and involves less typing etc, of course you should ideally stick these packages in a class and require the class, but this is not really feasable when you are using defined types.
This fails though with
Error: Could not parse for environment production: Invalid use of expression. A Virtual Query does not produce a value
|
|