Hi,

First, thanks for your answer.

I am not still aware of a deep understanding of differences between resources 
and functions, but some tests confirmed what you said.

A point, with my tests, notify messages are displayed in the reverse order they 
are written in manifest ...

I understood that alert, crit, debug, emerg, err, info, notice are functions 
executed on server during parsing step; the documentation explains that, by 
default, messages are sent to syslog even if I did not find them.

Thanks for your details on fail function,  I did not understand clearly which 
effects this function has.

I found ErrorLog in learning puppet documentation, (Generated on October 24, 
2012, from git revision 38e9e6c36310cb4895f51e180890cd3fbbbba28e) page 53/67 : 
this is a sample of an erb file.

Sincerly,

Bernard Granier
CE Plateforme Système
[email protected]<mailto:[email protected]>
01 58 11 32 51

From: [email protected] [mailto:[email protected]] On 
Behalf Of Ellison Marks
Sent: Friday, January 18, 2013 7:07 PM
To: [email protected]
Subject: [Puppet Users] Re: exceptions, error, traces

Notify is not a function. It is a resource type. It essentially logs on the 
client by putting a message in the client's catalog.

alert, crit, debug, emerg, err, info, notice and warning are functions. They 
will record a message to the server's log at the specified level. Parsing and 
execution will continue. I did not list the levels in any particular order.

fail is also a function. It is a way to programatically cause a parse failure. 
The error will be logged and execution on the current node will stop.

I'm not sure what you mean about ErrorLog. Where did you see it?

On Friday, January 18, 2013 5:13:35 AM UTC-8, 
[email protected]<mailto:[email protected]> wrote:
Hi,
Is there a tutorial on exceptions and error management in puppet script ?

I read the manual  and found information which is confusing for me.

There is the notify function which seems to be executed on agent.

There are functions like notice, alert, fail and so on which are executed on 
server.

And I read the ErrorLog word.

So how to put all things together, what is the right policy ?

Cordialement,

Bernard Granier
CE Plateforme Système
[email protected]<javascript:>
01 58 11 32 51


#
" This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system."
#
--
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/BwmVPXNfxcgJ.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To unsubscribe from this group, send email to 
[email protected]<mailto:[email protected]>.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.
#
" This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system."
#

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to