Puppet Enterprise Tasks

17 views
Skip to first unread message

FirstName LastName

unread,
Mar 10, 2021, 2:30:05 PM3/10/21
to Puppet Enterprise Users
have a simple scheduled  "audit rpms" task in Puppet Enterprise  that is working fine.

I would like to email the results of the puppet run to myself so I don't
have to go into the console, and or use cli and put tokens/passwords into a script

Is this possible?  Any suggestions?

dylan.ratcliffe

unread,
Mar 11, 2021, 4:16:46 AM3/11/21
to Puppet Enterprise Users, octo...@gmail.com

You could use a plan to run the task, then process the output and send it via email (or anything else). Here is an example of a function that could be used within a plan to send emails: https://gist.github.com/dylanratcliffe/5dba046bb8eca851f1fcd0f1d79f74f7

Likely the plan would give you lots more options too, like handling failures, triggering other tasks based on output, aggregating many results into one email etc.
Reply all
Reply to author
Forward
0 new messages