# Check if a resource has been collected

Hi,

It's possible to check if a resource has been collected in <<| |>> or <| |> sentences ?

Use case:

• node 1: export a resource with self-info (like hostname in an augeas properties.lens)
• node 2: tries to import/collect that resource. If it has been collected, the augeas (containing the hostname) is used to write in a local properties file. If not, that hostname must be retrieved from hiera.
• Is that possible with puppet ?