On Thu, Jul 21, 2011 at 7:37 AM, Peter Meier <peter.me...@immerda.ch> wrote: >> I'm still not getting my error() messages in the report yaml ... why? > > Probably, because functions are evaluated on the master, while the > report is created on the client when the catalog is applied. So these > messages never get sent down the client... > > ~pete
Ah, yes, that makes sense I guess. Puppet.error() calls within the resources executed on the clients get added to the client report, but Puppet.error() calls executed during compile time don't because they executed on the server. For now I've done: define report::err($withpath=false) { notify { $name: tag => 'err', withpath => $withpath, loglevel => 'err', } } It's a little annoying because it causes the creation of this resource to also be logged with loglevel = err, along with the message. But I think I can live with that. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.