[pve-devel] [PATCH proxmox 01/19] notify: switch to file-based templating system

Fiona Ebner f.ebner at proxmox.com
Fri Apr 19 10:14:18 CEST 2024


Am 09.04.24 um 15:25 schrieb Lukas Wagner:
> Instead of passing the template strings for subject and body when
> constructing a notification, we pass only the name of a template.
> When rendering the template, the name of the template is used to find
> corresponding template files. For PVE, they are located at
> /usr/share/proxmox-ve/templates/default. The `default` part is
> the 'template namespace', which is a preparation for user-customizable
> and/or translatable notifications.
> 

Is the plan to create different namespaces there ourselves or tell users
they can put their custom templates there? In the latter case, I'm not
sure /usr/share is the best place, rather than some place under /etc/

Who adds the template files? I don't see a patch for proxmox-ve in this
series. Does this series require some versioned breaks to some package?




More information about the pve-devel mailing list