Hi,
I have the following code:
define monitor::host (
$target,
$monitortag = $::domain,
) {
}
…
}
The define gets exported on all nodes:
@@monitor::host { $::fqdn: }
And I collect on the monitor server:
Monitor::Host <<| |>> {
target => ‘/full path to config’,
}
This is working as expected
No I want to collect from a specific monitortag only:
Monitor::Host <<| monitortag == ‘
foo.com’ |>> {
target => ‘/full path to config’,
}
Now we receive an error message on the host where we collect claiming that target is not set.
Is this known behaviour?
Many thanks,
Martin