Re: [Puppet Users] Trying to get tagmail to work

757 views
Skip to first unread message

Darin Perusich

unread,
Jun 12, 2012, 2:58:50 PM6/12/12
to puppet...@googlegroups.com
Add tagmail to reports in puppet.conf on the server.

--
Later,
Darin


On Tue, Jun 12, 2012 at 2:49 PM, Jason Knudsen <jason....@gmail.com> wrote:
> Hey guys,
>
> Relatively new to Puppet and I'm trying to setup tagmail to send all emails
> to me: at one point I'll filter that down to errors and whatnot (based on
> tags) but for now I just want to get it working.
>
> Master Puppet server is setup with Passengers, all works well:
>
> /etc/puppet/puppet.conf
> [main]
>     # The Puppet log directory.
>     # The default value is '$vardir/log'.
>     logdir = /var/log/puppet
>
>     # Where Puppet PID files are kept.
>     # The default value is '$vardir/run'.
>     rundir = /var/run/puppet
>
>     # Where SSL certificates are kept.
>     # The default value is '$confdir/ssl'.
>     ssldir = /etc/puppet/ssl
>
> [agent]
>     # The file in which puppetd stores a list of the classes
>     # associated with the retrieved configuratiion.  Can be loaded in
>     # the separate ``puppet`` executable using the ``--loadclasses``
>     # option.
>     # The default value is '$confdir/classes.txt'.
>     classfile = $vardir/classes.txt
>
>     # Where puppetd caches the local configuration.  An
>     # extension indicating the cache format is added automatically.
>     # The default value is '$confdir/localconfig'.
>     localconfig = $vardir/localconfig
>
>     # Turn on Reporting
>     report = true
>
> [master]
>     reports = tagmail
>     ssl_client_header = SSL_CLIENT_S_DN
>     ssl_client_verify_header = SSL_CLIENT_VERIFY
>
> And my /etc/puppet/tagmail.conf:
> all: m...@email.com
>
> On the slave, I have this setup in my puppet.conf:
> [main]
>     # The Puppet log directory.
>     # The default value is '$vardir/log'.
>     logdir = /var/log/puppet
>
>     # Where Puppet PID files are kept.
>     # The default value is '$vardir/run'.
>     rundir = /var/run/puppet
>
>     # Where SSL certificates are kept.
>     # The default value is '$confdir/ssl'.
>     ssldir = $vardir/ssl
>
>     # Stuff
>     server = puppet
>
> [agent]
>     # The file in which puppetd stores a list of the classes
>     # associated with the retrieved configuratiion.  Can be loaded in
>     # the separate ``puppet`` executable using the ``--loadclasses``
>     # option.
>     # The default value is '$confdir/classes.txt'.
>     classfile = $vardir/classes.txt
>
>     # Where puppetd caches the local configuration.  An
>     # extension indicating the cache format is added automatically.
>     # The default value is '$confdir/localconfig'.
>     localconfig = $vardir/localconfig
>
>     # Enable Reporting
>     report = true
>
>
>
> The reporting seems to work fine, my /var/lib/puppet/reports directory is
> populated every time the agent is run. But I never receive an email, and
> I've checked the /var/log/maillog (no event occurs).
>
> I'm sure I'm missing something stupid here -- been banging my head on it for
> awhile. Any idea?
>
> Thanks,
>
> Jason
>
> --
> 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/-/i1l6ylp8XXsJ.
> 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.

Jason Knudsen

unread,
Jun 12, 2012, 3:03:32 PM6/12/12
to puppet...@googlegroups.com
Hey Darin,

Appreicate the quick response. It's there, in /etc/puppet/puppet.conf on the master:

[master]
    reports = tagmail
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY

Jo Rhett

unread,
Jun 12, 2012, 3:43:48 PM6/12/12
to puppet...@googlegroups.com
Quick test: can you send mail from this system at all?  I've seen this kind of problem on CentOS when postfix was installed but not set up to be 'mta' in alternatives for instance. This meant that /usr/sbin/sendmail went nowhere...

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.

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.



Jason Knudsen

unread,
Jun 12, 2012, 3:59:05 PM6/12/12
to puppet...@googlegroups.com
Yeah -- checked that already, sorry forgot to mention that. Setup with postfix and a relay. Running /usr/sbin/sendmail m...@email.com gets delivered properly
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.

Iain Sutton

unread,
Jun 14, 2012, 6:48:57 PM6/14/12
to puppet...@googlegroups.com
Legacy perhaps, but we have:

   confdir = /etc/puppet
   tagmap = $confdir/tagmail.conf

in puppet.conf's [master] section and our tagmails work.

Cheers,

Iain

To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/CBTYiu3MmJsJ.

To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.

Jason Knudsen

unread,
Jun 15, 2012, 3:34:42 PM6/15/12
to puppet...@googlegroups.com
Finally got this working. I tried the below config, didn't help.... then actually rebooted the server itself, and hooray! Weird how these things work.. 

Case closed!

Thanks for all your help

Jason
Reply all
Reply to author
Forward
0 new messages