[ovirt-users] ovirt engine notifier customization question

Martin Perina mperina at redhat.com
Tue Mar 28 09:53:29 UTC 2017


On Tue, Mar 28, 2017 at 11:44 AM, Gianluca Cecchi <gianluca.cecchi at gmail.com
> wrote:

> Hello,
> in 4.1.0 I made some tests configuring the events' notifier service and I
> modified the file
>
> /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-
> notifier.conf
>
> changing these:
>
> # The SMTP mail server address. Required.
> MAIL_SERVER=localhost
> (I use postfix on engine server, configured with smart relay to my mail
> server)
>
> # Specifies 'from' address on sent mail in RFC822 format, if supported by
> mail server.
> MAIL_FROM=ovmgr1 at mydomain.it
>
> # Specifies 'reply-to' address on sent mail in RFC822 format.
> MAIL_REPLY_TO=some_group at mydomain.it
> (it seems it is not honored.... in the received e-mail if I click reply I
> get an empty To: field...
>
> During update to 4.1.1 the engine-setup failed in closing phase, due to
> the file being overwritten by the 4.1.1 package version of the conf file.
>
> [ INFO  ] Stage: Closing up
> [ ERROR ] Failed to execute stage 'Closing up': Failed to start service
> 'ovirt-engine-notifier'
>
> I fixed it creating a file 20-mailsetup.conf under
> ​​
> /etc/ovirt-engine/notifier/notifier.conf.d/
>
> Is it the correct location?
>

​Yes, every custom change to notifier configuration should be done by
creating a file inside ​

​​/etc/ovirt-engine/notifier/notifier.conf.d/
Also it's a convention that ​automatically generated files have number < 50
and user provided files have number > 50, so I'd personally rename your
file into 99-mailsetup.conf (but it's just a convention :-)

The same practise is also used for engine: you should not change
/usr/share/ovirt-engine/services/​ovirt-engine/ovirt-engine.conf but create
a new file under /etc/ovirt-engine/engine.conf.d


> It was not so clear reading this page when configuring it....
> http://www.ovirt.org/documentation/admin-guide/chap-Event_Notifications/
>
> Thanks,
> Gianluca
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170328/09c04c34/attachment.html>


More information about the Users mailing list