When executing this configuration on the client I get an error message
saying:
"Tue May 20 13:06:45 +0200 2008 Puppet (err): Could not retrieve
catalog: Failed to parse template logrotate-template.erb: Could not
find value for 'source' at /etc/puppet/manifests/classes/logrotate.pp:
6 on node <node>"
I'm not sure where the error may be. Is it not allowd to call
definitions directly from a node definition? Or must the definition be
included in a class?
> When executing this configuration on the client I get an error message > saying: > "Tue May 20 13:06:45 +0200 2008 Puppet (err): Could not retrieve > catalog: Failed to parse template logrotate-template.erb: Could not > find value for 'source' at /etc/puppet/manifests/classes/logrotate.pp: > 6 on node <node>"
> I'm not sure where the error may be. Is it not allowd to call > definitions directly from a node definition? Or must the definition be > included in a class?
I rather supsect that your define is broken. If you didn't change your define by pasting it to the mail, it should be:
This solved the problem. I referenced an example (page 52) in
Turnbull's Puppet book, and left out the "$" in the definition. But I
see now that this was incorrect.
In addition, I replaced the use of "source" with something else, just
in case of issues here.