per environment tagmail settings?

54 views
Skip to first unread message

JL

unread,
Dec 16, 2009, 12:39:07 PM12/16/09
to Puppet Users
Is it possible to disable tagmail reports for one environment but not
another? For example, when I run 'puppetd --test --
environment=testing', I do not want to receive an email. I tried
adding "!testing" to to tagmail.conf, but that didn't work.

Alternatively, I would like to add a statement to the top of the
reports that would state the environment, but I'm not sure how to do
that. It looks like most of the puppet functions for logging (err,
alert, critical, etc.) log to the server not the client.

Thanks

Dan Bode

unread,
Dec 16, 2009, 6:18:06 PM12/16/09
to puppet...@googlegroups.com
Hi,

Is it possible to disable tagmail reports for one environment but not
another?  For example, when I run 'puppetd --test --
environment=testing', I do not want to receive an email.  I tried
adding "!testing" to to tagmail.conf, but that didn't work.

you can access a hosts environment (on its current run) in the following file (on the puppet server):

  $vardir/yaml/node/HOST.yaml

 You could use this information to customize any of the reports if you need extra filtering based on environment.
  they can be found at:
/usr/lib/ruby/site_ruby/1.8/puppet/reports/
 
Alternatively, I would like to add a statement to the top of the
reports that would state the environment, but I'm not sure how to do
that. It looks like most of the puppet functions for logging (err,
alert, critical, etc.) log to the server not the client

again, this would require customizing the reports.
 
hope this help,

Dan Bode

Ohad Levy

unread,
Dec 16, 2009, 9:07:00 PM12/16/09
to puppet...@googlegroups.com
There a few custom reports already in foreman (including email summary notification*1), I'll be happy to add more use cases if you add feature requests :)

cheers,
Ohad

[1] http://theforeman.org/wiki/foreman/Summarized_E-Mail_Reports



--

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



JL

unread,
Dec 17, 2009, 9:25:22 AM12/17/09
to Puppet Users
On Dec 16, 9:07 pm, Ohad Levy <ohadl...@gmail.com> wrote:
> There a few custom reports already in foreman (including email summary
> notification*1), I'll be happy to add more use cases if you add feature
> requests :)

I'm not using foreman yet, but this looks like a good time to start.

Joe McDonagh

unread,
Dec 22, 2009, 1:55:50 PM12/22/09
to puppet...@googlegroups.com
> --
>
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>
>
I have a feature request in for this, feel free to thumbs-up it.

--
Joe McDonagh
Silent Penguin Services
Operations Engineer
AIM: YoosingYoonickz
IRC: joe-mac on freenode
Blog: www.colonfail.com

Ohad Levy

unread,
Jan 5, 2010, 2:29:56 AM1/5/10
to puppet...@googlegroups.com
FYI, this feature is now available in foreman edge version, and will be included in the next official release.
it is possible to generate reports based on facts (e.g. all hosts that belongs to domain X) or based on environment.

cheers,
Ohad
Reply all
Reply to author
Forward
0 new messages