About puppet report

26 views
Skip to first unread message

Dmitry

unread,
Feb 16, 2012, 12:44:56 AM2/16/12
to Puppet Users
Hello!

I am using puppet-2.7.6 under FreeBSD.

Here is my config file:

[agent]
server = some.server.tld
splay = true

[master]
reportfrom = so...@email.tld
reports = store, tagmail
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY


If client is unable to sync files with master, I want to receive e-
mail with problem description.
Recently I made a mistake in my server config (wrong path to a file).

I got error in client's log:
puppet-agent[82214]: (/Stage[main]/Suggest-test/File[/etc/rc.conf.d/
lighttpd]) Could not evaluate: Could not retrieve information from
environment production source(s) puppet:///modules/bsd/etc/rc.conf.d/lighttpd
at /usr/local/etc/puppet/modules/bsd/manifests/init.pp:16

but no e-mail so this problem was unnoticed until I found it in log.

What should I do in order to receive e-mail from puppet next time I
make similar mistake?

Thanks!

Dmitry

unread,
Feb 16, 2012, 5:53:57 AM2/16/12
to Puppet Users
PS: my tagmail.conf file contains:

warning: m...@email.tld


On Feb 16, 9:44 am, Dmitry <trtrmi...@gmail.com> wrote:
> Hello!
>
> I am using puppet-2.7.6 under FreeBSD.
>
> Here is my config file:
>
> [agent]
>   server = some.server.tld
>   splay = true
>
> [master]
>   reportfrom = s...@email.tld

Andreas Paul

unread,
Feb 17, 2012, 9:58:15 AM2/17/12
to puppet...@googlegroups.com
I don't know if there is a warning tag in puppet by default, but I would try using the specific error tag in your tagmail.conf
err: m...@email.tld

You could also try setting

all: m...@email.tld
to test if your puppetmaster can send report emails at all.

P.S. I had to restart my puppetmaster (apache httpd in my case) to get the modified tagmail.conf to work.
Reply all
Reply to author
Forward
0 new messages