Ask Your Question

Tagmail does not work in puppet 4.5.2 [closed]

asked 2016-07-07 16:18:56 -0500

updated 2016-07-07 16:19:43 -0500

I downloaded the latest version of puppetlabs/tagmail module and it worked for me in my agent nodes that had 3.8.4 installed. It doesn't work in nodes which have puppet version 4.5.2

Following is my setup:

Setup puppet.conf with these parameters for sending email:

      reports = store, tagmail, smtp
      report = true
      pluginsync = true
      tagmap = $confdir/tagmail.conf
     report = true
     pluginsync = true

Setup tagmail.conf with these parameters to send an email whenever there are critical, emergency, alert, errors and warning level messages on the puppet agent run:

        reportfrom =
        smtpserver =
        smtpport = 25
        smtphelo =

Please let me know what's wrong and how to fix it.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Redsmile
close date 2016-08-11 13:54:12.630011


Does your all agents having "pluginsync = true" setting enabled?

rajeevsharma gravatar imagerajeevsharma ( 2016-07-08 07:12:31 -0500 )edit

Yes, all of the agents have pluginsync=true enabled.

Redsmile gravatar imageRedsmile ( 2016-07-08 09:13:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-11 09:16:10 -0500

I got this resolved myself by updating the puppet conf to include smtp and restarting the puppet master server after the changes are made in the puppet.conf file. These weren't in the tagmail forge module's ReadMe so it took a while to figure this myself. Solution: Add smtp to reports in [master] along with tagmail, store. Restart puppet server after making any change to puppet.conf and it will work.

edit flag offensive delete link more

Question Tools


Asked: 2016-07-07 16:18:56 -0500

Seen: 19 times

Last updated: Jul 11 '16