]> git.proxmox.com Git - pve-ha-manager.git/commit
manager: send notifications via new notification module
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 3 Aug 2023 12:16:50 +0000 (14:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 3 Aug 2023 15:34:52 +0000 (17:34 +0200)
commit4cb3b2cf9baaf069b1fa505ba6c4fe5f7f3659ec
tree7c16e0bd9863bf263bfd1a89169787bce9335ec6
parentdfe080bab1f7f5f12c6de5837c53b47b27355ea6
manager: send notifications via new notification module

... instead of using sendmail directly.

If the new 'notify.target-fencing' parameter from datacenter config
is set, we use it as a target for notifications. If it is not set,
we send the notification to the default target (mail-to-root).

There is also a new 'notify.fencing' paramter which controls if
notifications should be sent at all. If it is not set, we
default to the old behavior, which is to send.

Also add dependency to the `libpve-notify-perl` package to d/control.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
debian/control
src/PVE/HA/Env.pm
src/PVE/HA/Env/PVE2.pm
src/PVE/HA/NodeStatus.pm
src/PVE/HA/Sim/Env.pm