all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-cluster 1/2] Close #1295: Add notify_updates to datacenter schema
@ 2021-04-07  8:30 Dominic Jäger
  2021-04-07  8:30 ` [pve-devel] [PATCH manager 2/2] Close #1295: Make apt notifications configurable Dominic Jäger
  0 siblings, 1 reply; 6+ messages in thread
From: Dominic Jäger @ 2021-04-07  8:30 UTC (permalink / raw)
  To: pve-devel

To store user preference for if they want to receive notifications from
pveupdate or not.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
---
 data/PVE/DataCenterConfig.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/PVE/DataCenterConfig.pm b/data/PVE/DataCenterConfig.pm
index 24ebf3f..d20292f 100644
--- a/data/PVE/DataCenterConfig.pm
+++ b/data/PVE/DataCenterConfig.pm
@@ -146,6 +146,12 @@ my $datacenter_schema = {
 	    format => 'email-opt',
 	    description => "Specify email address to send notification from (default is root@\$hostname)",
 	},
+	notify_updates => {
+	    optional => 1,
+	    default => 1,
+	    type => 'boolean',
+	    description => 'Control e-mail notifications about system updates',
+	},
 	max_workers => {
 	    optional => 1,
 	    type => 'integer',
-- 
2.20.1




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [pve-devel] [PATCH manager 2/2] Close #1295: Make apt notifications configurable
@ 2021-04-08 10:02 Dietmar Maurer
  0 siblings, 0 replies; 6+ messages in thread
From: Dietmar Maurer @ 2021-04-08 10:02 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominic Jäger, Thomas Lamprecht

> Is there a reason why we assume that users without subscription do not want
> such notifications?
> 
> As far as I see it, if we change it to
> > $dccfg->{notify_updates} // 1
> Then (until they change something)
> - users with active subscription should _continue_ to get notifications
> - enterprise repo configured but invalid subscription will continue to _not_
>   get mails (because pveupdate exits with error 100)

Can we instead notify them that their subscription is invalid?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-08 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07  8:30 [pve-devel] [PATCH pve-cluster 1/2] Close #1295: Add notify_updates to datacenter schema Dominic Jäger
2021-04-07  8:30 ` [pve-devel] [PATCH manager 2/2] Close #1295: Make apt notifications configurable Dominic Jäger
2021-04-07  8:51   ` Thomas Lamprecht
2021-04-08  9:21     ` Dominic Jäger
2021-04-08  9:28       ` Thomas Lamprecht
2021-04-08 10:02 Dietmar Maurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal