Fix foreman reports in Satellite 6.0

Foreman reports in Satellite 6.0 doesn’t work out of the box, first we need to setup our SMTP settings.

Error that we face without SMTP configured:

[email protected]:/var/log/foreman# /usr/sbin/foreman-rake reports:summarize
rake aborted!
getaddrinfo: Name or service not known

Tasks: TOP => reports:summarize
(See full trace by running task with --trace)

We just need to configure our settings in /etc/foreman/email.yaml like:

[email protected]:/var/log/foreman# cat /etc/foreman/email.yaml
# Outgoing email settings
  delivery_method: :smtp
    port: 25
    authentication: :none

And if we run our reports once again we’ll get our email

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.