Hi all,
One of the issues I'm working on this sprint is designing #7129 "As a user, I
should get errata notifications via email that indicate when new errata need to
be applied and to what hosts."
In order to accomplish that, it would be nice to have a framework for e-mail in
Foreman. Partha and I talked a bit about it yesterday. Eric also has some notes
on the Katello issue: Feature #7129: As a user, I should get errata notifications via email that indicate when new errata need to be applied and to what hosts. - Katello - Foreman
Here's a short summary of the ideas/goals. I'll send out an invite for a quick
30 minute discussion next week - would google hangouts be good for that?
I'm thinking of two types of e-mails to send:
- Summaries (recurring)
- Notifications (ad hoc)
Foreman mail notifications today:
Mail Notifications - Foreman
Currently, Foreman sends it's emails via a unix cron job that launches a rake
task. We can take that and make it more generic - run every 30 or 60 minutes to
poll for any mail it needs to send. Notifications would be live, of course.
For Katello, we could use the same strategy, but have our own rake task to hand
off the summary generation to an async task instead. AFAIK, there's no built-in
scheduling ability in foreman-tasks today, right? I know there's some gems out
there that support various scheduling activites, but I do prefer cron.
As part of this, we would introduce a mail preferences tab to the My Account
page where a user can decide what they want to receive. Plugins, of course,
would be able to register their own items easily.
These would all be confined by the Foreman permissions model, so you can limit
which notifications/summaries a user can view, and the content of them as well
would be limited to what the user can see.
For summaries, they should be generic - e-mailable, viewable with hammer, and
maybe eventually in the UI under Monitor.
Hammer would look something like:
hammer summary show --name katello-daily-errata
To start out with, I'm thinking:
- Daily Errata Report (what hosts have what errata needs)
- Puppet summary (existing summary in Foremna)
- Subscription Usage? (Feature #7536: As a user I would like a way to view reports on Subscription Consumption in Katello - Katello - Foreman)
For notifications, I'm thinking of being able to subscribe to events like:
- Bad puppet report (already there today in the rake task)
- New errata (Option to receive only security, or the mail bomb of everything
like Spacewalk)
Thoughts?
Thanks!
···
-- Stephen BenjaminRed Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters