Check if a resource has been collected

asked 2017-06-21 11:17:26 -0500

gevix gravatar image

updated 2017-06-22 06:07:26 -0500

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 ?

    Thanks in advance.

edit retag flag offensive close merge delete