[Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Rakesh Kathpal
Hi, The functionality that I am trying to achieve is Step 1: Running a command / script triggered by a puppet run on the client Step 2: Gathering the output of script Step 3: Send the output via email to external source Please note here, I am not sure about email settings on the client, so I

Re: [Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Johan De Wit
Hi, http://docs.puppetlabs.com/references/latest/report.html#tagmail If you can get the output in execution report on your node, you could use the tagmail configuration on the master to send email to the right resource. That's the first place I would look at for a possible solution Grts

Re: [Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Rakesh Kathpal
Johan, Thanks for your reply. I had tried to explore this option but it seems, the report/output that is generated is only related and limited to the puppet run. Even for the script / command that I will be running via puppet, the report just contains whether it was successfully executed or not,

Re: [Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Johan De Wit
Hi Rakesh, I was afraid of that :) Have you looked at the exec attribute - **logoutput** Whether to log command output in addition to logging the exit code. Defaults to `on_failure`, which only logs the output when the command has an exit code that does not match any value

Re: [Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Martin Alfke
Hi, On 20 Feb 2014, at 10:21, Rakesh Kathpal rkath...@gmail.com wrote: Johan, Thanks for your reply. I had tried to explore this option but it seems, the report/output that is generated is only related and limited to the puppet run. Even for the script / command that I will be running

Re: [Puppet Users] Sending Mail from puppet master !!!

2014-02-20 Thread Rakesh Kathpal
Looks good.. Tks a lot Johan Martin.. On Thu, Feb 20, 2014 at 3:13 PM, Martin Alfke tux...@gmail.com wrote: Hi, On 20 Feb 2014, at 10:21, Rakesh Kathpal rkath...@gmail.com wrote: Johan, Thanks for your reply. I had tried to explore this option but it seems, the report/output that