Hi all,
I use a number of exported resources, some of which are exported custom definitions.Since
upgrading to 2.7.5, I've seen an issue which is driving me up the wall trying to debug it. Hopefully
someone can help :)
Consider the following three snippets of code:
$modulepath/ntp/manifests/ntp_register.pp:
define basics::ntp_register ($content="", $order=10) {
 concat::fragment{"ntp_conf_$name":
  target  => "/etc/ntp.conf",
  content => "$content",
  order => "$order"   Â
 }
}
$modulepath/servers/manifests/ntp_server.pp
class servers::ntp_server {
 @@basics::ntp_register { "Server Ntp $domain": content => "stuff here\n" }
}
$modulepath/servers/manifests/ntp_client.pp
class servers::ntp {
 Basics::Ntp_register <<| title == "Server Ntp $domain" |>>
So we have a defined resource, an export of that resource, and a collection of it. In 2.7.3, this worked fine,
however, in 2.7.4 and 2.7.5 I get
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find typeÂ
Basics::Ntp_register on node client.foo.bar
I'm not sure what's changed that's causing this. I've read some stuff about loading order, but they seem
to be old bugs that were fixed ages ago. I can see that rewriting this as a local definition containing an
exported resource might work, but I'd rather understand what's wrong with my approach first.
Thanks in advance,
Greg