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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 On Thu, Dec 17, 2009 at 1:39 AM, JL <jlyman2@gmail.com> wrote:> 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 > > -- > > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
JL wrote:> 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 > > -- > > 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+unsubscribe@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 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 On Wed, Dec 23, 2009 at 2:55 AM, Joe McDonagh <joseph.e.mcdonagh@gmail.com>wrote:> JL wrote: > > 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 > > > > -- > > > > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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 > > -- > > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.